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


Удаленная работа для программистов  •  Как заработать на 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

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