Reply to Re: UTF8: file_put_contents doesn't seem to write UTF8 content properly

Your name:

Reply:


Posted by amygdala on 06/16/07 20:10

"Willem Bogaerts" <w.bogaerts@kratz.maardanzonderditstuk.nl> schreef in
bericht news:4672410c$0$331$e4fe514c@news.xs4all.nl...
>> I'm trying to let PHP write a 'sitemap.xml' sitemap for Google and other
>> searchengines. It's working, except that the content in the XML file
>> doesn't
>> seem to be UTF8. (Which it should be, judging by the information given on
>> Google's webmaster helpcenter).
>
> How can you tell? YOU tell the system what encoding is used. The system
> rarely tells you, as bytes can be perfectly valid text in a lot of
> encodings and look very different in each of them.

Yes, you're right of course, what was I thinking.

> Even if the system tells you, it usually does so separately from the
> text itself. Which is obvious, because you need the encoding to be able
> to read the text! In webpages and e-mail, for example, headers are used
> to set the encoding of the data.
>
> I suggest you search the net for encodings and how to work with them.
> This is a good start:
>
> http://www.joelonsoftware.com/articles/Unicode.html

Great article. Thanks for the pointer.

> Good luck with the onions,

Hopefully that won't be necessary anymore.
Cheers.

> --
> Willem Bogaerts
>
> Application smith
> Kratz B.V.
> http://www.kratz.nl/

[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

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