Re: generating xml with chars like (õäöü )
[email protected] (Manuel Lemos) Tue, 13 Jul 2004 18:50:53 -0300
| Newsgroups | php.xml.dev |
|---|---|
| Message-ID | <[email protected]> |
Hello, On 07/13/2004 09:24 AM, Jux wrote: > I found another problem in that kind of situation. Now when i create xml > data with DOM, I have character ecoding problem. > Right now my xml starts like so: > <?xml version="1.0" encoding="ISO-8859-1"?> > > But i must use estonian language characters like: õ ä ö ü > So i think UTF-8 charset should do fine here but xml DOM had some kind > of problems when encoding was utf-8. All those characters are part of ISO-8859-1. You should not need to use Unicode. > So what do u suggest me to do. Use some kind of encoding or maybe use > somekind of character converting functions in PHP to read/write xml files? You may want to try this XML writer class. If you really insist to convert the encoding to UTF-8, just specify UTF-8 as output encoding, but I don't think it is necessary: http://www.phpclasses.org/xmlwriter -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html