Ryan's District
November 21, 2008, 07:53:40 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: You are not allowed to view links.
Register or Login
How to Unlock Nokia mobile Phones

You are not allowed to view links.
Register or Login
Request any TV Show / series / Episodes / movie and we will get it for you for free

 
   Home   Help Search Chat Calendar Chess Shop Login Register  
Digg This!
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: XML Encoding  (Read 3076 times)
0 Members and 1 Guest are viewing this topic.
ben2ong2
Quality Poster
Paid
Hero Member
*****

Reputation: 17
Offline Offline

Gender: Male
Posts: 2374
9976.80 RD$

View Inventory
Send Money to ben2ong2

View Profile Awards
« 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"?>

 

Logged

You are not allowed to view links.
Register or Login
Free Paid Survey & Home Business Resources.

You are not allowed to view links.
Register or Login
Free Article Directory | Quality Content
Ryan's District
« on: October 06, 2006, 02:46:22 PM »

 Logged
Pages: [1]   Go Up
  Send this topic  |  Print  
 
Jump to:  

Archive - WAP2 - WAP - imode
Sponsors: RAYAN.tv
-

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 20.023 seconds with 31 queries.

Google visited last this page November 19, 2008, 09:46:53 AM