You are here: Re: iconv or xmlsimpledocument with windows-1250 « PHP Programming Language « IT news, forums, messages
Re: iconv or xmlsimpledocument with windows-1250

Posted by B.r.K.o.N.j.A on 08/09/06 07:53

> 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
>

Allready did that and it worked fine as expected (WIN-1250 -> ISO-8859-1
was a gross oversight on my part... :)) Anyway, if anyone can use this:
When simplexml-ing a xml file that's not in ISO-8859-1 or UTF-8 (and
that xml file has encoding tag within), simplexml internally converts it
to utf-8 and returns utf-8 data (which started my problem since I
believed that I'm getting win-1250 data as stated in xml document... and
things just took from there ... :))

Thx,

P.S. I was actually needin' Croatian latin (though it's *exactly* the
same as Serbian one, you wouldn't make a lot of friends here calling it
Serbian :)))

--

B.r.K.o.N.j.A = Bionic Robotic Knight Optimized for Nocturnal Judo and
Assasination

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация