W3C home > Mailing lists > Public > www-math@w3.org > July 2010

Re: Firefox not recognizing some special characters in an XHTML+MathML file

From: David Carlisle <davidc@nag.co.uk>
Date: Fri, 02 Jul 2010 16:13:41 +0100
Message-ID: <4C2E0225.9040301@nag.co.uk>
To: saf sied <saf_itpro@yahoo.com>
Cc: www-math@w3.org
On 02/07/2010 04:31, saf sied wrote:
> When trying to display a webpage generated from MS Word in Firefox, it
> does not display some special characters generated by MS Word if the
> webpage is saved as an .xht file. For example, MS Word converts the
> single quote, double quotes and three dots (…) into some special
> characters when you save the word document as a webpage. Firefox does
> not recognize these characters.

 From the filesystem the default encoding of xml files is likely to be 
UTF8 (from a web server you can specify the encoding in the http headers)

The quotes have been written out in the non standard microsoft-specific 
cp1252 encoding, so you probably need to either fix the quotes to be 
written in a standard encoding, or specify the encoding in the xml 
document changing
<?xml version="1.0"?>
<?xml version="1.0" encoding="cp1252"?>

Note however that an XML parser is not forced to recognise non standard 


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
Received on Friday, 2 July 2010 15:14:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:27:43 UTC