Informations
Apache - created by pg
Advanced techniques for HTTPD Server and SSO
Public Group
Beginners may find it hard...
Date : the 13/10/2007
Visited : 13571
SpotRank : 13186
Channel: Computer, Internet
Permalink :
AUTHOR(S)
 

Apache Follow

Character Sets / Character Encoding Issues [Web Application Component Toolkit]

Character Sets / Character Encoding Issues [Web Application Component Toolkit]

Code isses with multibyte UTF-8 characters

Now you’ve intructed browsers that you’re only using UTF-8, the next issue will be making sure that the string operations you perform in your code will behave correctly when given multibyte UTF-8 characters. This doesn’t mean you need to throw out all use of PHP‘s native string functions, regular expressions and otherwise, but that you need to consider where PHP needs to understand what a multibyte character is. In general, if we call the needle to be a string you are, in some way, searching for and the haystack to be the string you are searching in, you will need to worry when the needle could contain multibyte (non-ASCII) characters. This is expanded in under common problems but a couple of examples.

TAGS php |  i18n |  charsets | 
View original story on http://www.phpwact.org/php/i18n/charsets
pg
pg : "PHP and Unicode ... what to do before PHP6 !"
YOUR REACTION
YOUR REACTION