Stuck? Need help? Ask questions on our forums.

How to display foreign characters in an XML document?[/b]

When saving XML documents containing foreign characters with Windows 95/98 Notepad. An XML declaration that specifies the encoding attribute must be set.

The following is for use with non-Latin based characters:

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


Windows 2000 Notepad files are saved as Unicode "UTF-16" encoding by default. Therefore, there is no need to include the encoding attribute even if foreign characters are in use. However, if you want to view XML files in browsers other than Internet Explorer 5.0 or higher, you must specify the correct encoding.

Back to XML FAQ
 

Other Views

corner
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 Programmersheaven.com - 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 our Terms Of Use and Privacy Statement for more information.
Publisher: Lars Hagelin. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.