You are here: Re: Broken xml output « All PHP « IT news, forums, messages
Re: Broken xml output

Posted by Steven Mocking on 01/23/07 16:24

OmegaJunior wrote:
> On Thu, 18 Jan 2007 14:08:01 +0100, Steven Mocking
> <ufo@quicknet.youmightwanttogetridofthis.nl> wrote:
>
>> Changing the encoding argument to startDocument in the script results in
>> a conv error:
>>
>> Warning: XMLWriter::outputMemory() function.XMLWriter-outputMemory:
>> output conversion failed due to conv error, bytes 0xEB 0x6C 0x65 0x3C in
>> broken-xml-output.txt on line 18
>>
>> Doesn't make any sense to me, because it doesn't even need to convert
>> the string. Same trouble on two machines with PHP 5.1.2 and 5.2.0. I
>> could always replace it in the output with a regexp on the first line,
>> but that's just plain Bad and Wrong.
>
> Having no experience with XMLWriter, I thought of these questions:
> - maybe the writer does try to convert the input text into whatever
> charset you supply?

Agreed, that's what it looks like. How do I prevent it from doing that
without rewriting the builtin class myself?

> - maybe it tries to save the input text as whatever charset you supply?
> - the e-umlaut may be part of the iso-8859-1, but is it part of utf-8,
> too? Or would you need a unicode number?

True.

 

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

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