[Home]  [Edit this page]  [Recent Changes]  [Special Pages]  [Help
How_To_XML_Display_Foreign_Characters

How to display foreign characters in an XML document?

If no encoding is given, XML files are saved as  ?Unicode "UTF-8" by default.

If you save your XML documents containing foreign characters with Windows 95/98 Notepad, you must specify the encoding attribute in the XML declaration like this:

<?xml version="1.0" encoding="ISO-8859-1"?>


Windows 2000 Notepad can save text files with Unicode "UTF-8" or "UTF-16" encoding, so there is no need to include the encoding attribute even if you use foreign characters.

However, if you want to view the XML files in other browsers than Internet Explorer 5.0 or up, you must specify the correct encoding.

Some of the possible character encoding schemas are  ?UTF-8,  ?UTF-16,  ?ISO-8859-1 or  ?windows-1252.

XML FAQ

last edited (April 19, 2004) by lillu, Number of views: 2502, Current Rev: 7 (Diff)

[Edit this page]  [Page history]  [What links here]  [Discuss this topic]  [Printer Friendly]  

Members

Username:

Password:


Register
Forgot Password?




Programmers Heaven - for .NET, Java, C/C++ and WEB Developers!
© 1996-2008 Community Networks Ltd. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited. Violators of this policy may be subject to legal action. Please read Terms Of Use and Privacy Statement for more information. Development by Tore Nestenius at .NET Consultant - Synchron Data.