XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 18th, 2003, 11:53 AM
karam karam is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 19 karam User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Encoding in XML file

I was working with an XML file that contains some German characters. If I just create a default XML file it is giving error in IE. If I setup encoding=UTF-8, it is working fine

I did a google and came to know that different encoding exists like UTF-8, UTF-16 etc. Can somebody point out all the encodings that are valid and how they work?

What encoding is universal and can show any characters?

Thanks in advance.

Karam

Reply With Quote
  #2  
Old December 23rd, 2003, 07:44 PM
fpmurphy fpmurphy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: USA
Posts: 259 fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 23 h 16 m 51 sec
Reputation Power: 6
From the XML 1.0 specification:

"In an encoding declaration, the values "UTF-8", "UTF-16", "ISO-
10646-UCS-2", and "ISO-10646-UCS-4" should be used for the
various encodings and transformations of Unicode / ISO/IEC
10646, the values "ISO-8859-1", "ISO-8859-2", ... "ISO-8859-9"
should be used for the parts of ISO 8859, and the values "ISO-
2022-JP", "Shift_JIS", and "EUC-JP" should be used for the
various encoded forms of JIS X-0208-1997. XML processors may
recognize other encodings;"

To answer the second part of your email, of the above,
ISO-10646 (similar to, but not indentical to Unicode) supports
the most characters and glyphs.

- Finnbarr

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Encoding in XML file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway