|
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.
[Back to original message]
|