|
Posted by ninja on 08/09/06 05:45
B.r.K.o.N.j.A wrote:
> Does anyone has any experience with these two, I've lost a s**tload of
> time trying to make them work with a well formed xml document encoded in
> windows-1250 encoding, but simplexml works only with utf-8 and
> iso-8859-1 and iconv-ing the string with original xml in it
> ($isostr=iconv('WINDOWS-1250', 'ISO-8859-1', $winstr);) before xml
> parsing did no good (illegal characters, which i could //IGNORE or
> //TRANSLIT but then I would loose characters that I needed in a first
> place). Finally I ended up writing my own parsing routine for that
> particular xml file. Damn, and I hoped that I could use these cool new
> xml parsing capabilities that were so hyped in php5 (the language in
> question is php 5.0.4)
>
> Any ideas?
> --
>
> B.r.K.o.N.j.A = Bionic Robotic Knight Optimized for Nocturnal Judo and
> Assasination
Hello,
As far as I can tell from your post, it seems you're converting to
wrong charset. ISO-8859-1 (Latin-1) can't handle the characters you
need - my guess is that you need Serbian latin. Try iconv- ing the
string to UTF-8.
Vladislav
Navigation:
[Reply to this message]
|