You are here: Re: String Validation With UTF-8 Support « PHP Programming Language « IT news, forums, messages
Re: String Validation With UTF-8 Support

Posted by Benjamin Wilger on 10/07/05 10:01

Hi!

I hope I got your problem right. In the PHP Manual contributed notes
theres a very good function to validate (and proof) UTF-8 encoded data.

http://de3.php.net/manual/en/function.utf8-encode.php#48160

It works perfectly for me. This function returns false when the given
text has chars in it, which are not part of the UTF-8 standard i.e.
ISO/ANSI above 128. If your Webpage has the correct meta-tag (charset
UTF-8) or the corresponding header (look in the php.ini, there's a
default setting!), the browser should then send you UTF-8 encoded data.

By the way have a look at the mb_string extension. It delivers a set of
string functions that replace the existing php functions which don't
support multi-byte char strings.

Hope that helped you a bit.

Greetings,
Benjamin Wilger

 

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

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