Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
XML - What encoding shall I specify?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
miunk
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 199

PostPosted: Mon Apr 14, 2003 7:15 pm    Post subject: XML - What encoding shall I specify? Reply with quote

How do I know what to put in my XML document header:
Code:
<?xml version="1.0" encoding= ?


Would the wrong encoding surely cause problems? Can the encoding attribute be left out all together?
Back to top
View user's profile Send private message
michaelb
l33t
l33t


Joined: 06 Jun 2002
Posts: 686
Location: Ann Arbor, MI

PostPosted: Mon Apr 14, 2003 8:09 pm    Post subject: Reply with quote

what you put in encoding is what character set you are using in the XML document. Assuming you are using the standard western character set, you would use
Code:
encoding="ISO-8859-1"

_________________
Behold, The power of SEARCH!
Back to top
View user's profile Send private message
miunk
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 199

PostPosted: Tue Apr 15, 2003 12:45 am    Post subject: Reply with quote

I guess my question is how do I know what my current character set is? In nano for example, or in eclipse?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum