Euro Encoding Issue
Posted on 2003-03-13
I am internationalising our site and am having some encoding issues with the Euro sign.
I know that I need to use Latin 0 or UTF-8, and have added this as the content type for our ASP XML creation pages and in the XML declaration. I have also installed the Euro update on our test server (NT4).
When I have the XML (the real stuff is longer, but this demonstrates the point)
<data currency"€" value="100"/>
(currency is a Euro sign if you cant see it!)
When using the XML declaration:
<?xml version="1.0" encoding="ISO-8859-15"?>
the Euro sign comes out as a square
<?xml version="1.0" encoding="UTF-8"?>
an error is thrown saying that an invalid character was found.
This is in an ASP file and the Response.contentType="text/xml" and Response.CharSet="ISO-8859-15" or "UTF-8"
It has been saved using Interdev 6(SP4) as a standard asp file (can't save as unicode asp file as this is not supported by IIS 4)
When I save the equivalent XML result in notepad as an ANSI file I have the same problems, but if i save it as UTF-8 it is fine.
Is this the issue?
is there a fix for Inetrdev?
Help very much appreciated, assume lots of others have run into this problem??