ben2ong2
Quality Poster
Paid
Hero Member
   
Reputation: 17
Offline
Gender: 
Posts: 2374
9976.80 RD$
View Inventory
Send Money to ben2ong2
|
 |
« on: October 06, 2006, 02:46:22 PM » |
|
XML documents may contain foreign characters, like Norwegian æ ø å , or French ê è é. To let your XML parser understand these characters, you should save your XML documents as Unicode. Windows 2000 Notepad Windows 2000 Notepad can save files as Unicode. Save the XML file below as Unicode (note that the document does not contain any encoding attribute): <?xml version="1.0"?><note> <from>Jani</from> <to>Tove</to> <message>Norwegian: æøå. French: êèé</message></note> The file above, note_encode_none_u.xml will NOT generate an error in IE 5+, Firefox, or Opera, but it WILL generate an error in Netscape 6.2.
Windows 2000 Notepad with Encoding Windows 2000 Notepad files saved as Unicode use "UTF-16" encoding. If you add an encoding attribute to XML files saved as Unicode, windows encoding values will generate an error. The following encoding (open it), will NOT give an error message: <?xml version="1.0" encoding="windows-1252"?> The following encoding (open it), will NOT give an error message: <?xml version="1.0" encoding="ISO-8859-1"?> The following encoding (open it), will NOT give an error message: <?xml version="1.0" encoding="UTF-8"?> The following encoding (open it), will NOT generate an error in IE 5+, Firefox, or Opera, but it WILL generate an error in Netscape 6.2. <?xml version="1.0" encoding="UTF-16"?>
|