|
Posted by Matthias Langbein on 07/23/06 09:07
Thanks, that was the problem. I saved the file with UTF-8 and it
worked.
Are you shure that the accept-charset attribute works? I had set it to
UTF-8 or UTF-16 and uploaded a file in UTF-8 and UTF-16, and the
upload worked in all four cases. So I don't really thing that this
contraint is implemented.
Unfortunatelly I have to accept UTF-8 and UTF-16 encoded files. Is
there a way to convert the stream to UTF-8
Thanks for your help!!
On Sun, 23 Jul 2006 00:50:15 +0100, Andy Hassall <andy@andyh.co.uk>
wrote:
>On Sun, 23 Jul 2006 01:16:49 +0200, Matthias Langbein
><matthias_langbein@web.de> wrote:
>
>>I get a weird result:
>>body: ÿþ< h t m l > < h e a d > < t i t l e < / t i t l e > .....
>>So there seem to be some white spaces between every character.
>
> They're not spaces; that's UTF-16 encoded (with a leading BOM character).
>
> What encoding is the original page in? What was the file you uploaded edited
>with? You may also want to look at the accept-charset attribute of the <form>
>element.
[Back to original message]
|