Reply to Re: white spaces in uploaded html file

Your name:

Reply:


Posted by Kimmo Laine on 07/24/06 06:57

spam@outolempi.net || Gedoon-S @ IRCnet || rot13(xvzzb@bhgbyrzcv.arg)
"Matthias Langbein" <matthias_langbein@web.de> wrote in message
news:nre6c2tmdtsu6lj11j7q2v54jlnpt9rce2@4ax.com...
> 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


http://php.net/manual/en/ref.mbstring.php

$file = mb_convert_encoding($file, 'UTF-8', 'auto');

--
"Ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" - lpk
http://outolempi.net/ahdistus/ - Satunnaisesti pδivittyvδ nettisarjis

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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация