You are here: Re: white spaces in uploaded html file « PHP Programming Language « IT news, forums, messages
Re: white spaces in uploaded html file

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.

 

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

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