Difference between #25 and #26 of
How to set up Unicode

Revision #26 has been created by François Gannaz on Feb 20, 2013, 8:13:20 AM with the memo:

remove spam link
« previous (#25) next (#27) »

Changes

Title unchanged

How to set up Unicode

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

i18n, unicode

Content changed

[...]
~~~

>Note: Unfortunately it's not recommended to set this an an `.htaccess` file as this may lead to undefined behavior.

When mbstring function overloading is turned on the built-in PHP function `strlen()` counts Unicode characters, not bytes, and the change can break existing code. Use `mb_string($str, 'ISO-8859-1')` to find the byte length of `$str`.

 
### Links
 
[Chinese version](http://projects.ourplanet.tk/node/84)
19 0
14 followers
Viewed: 138 282 times
Version: 1.1
Category: How-tos
Tags: i18n, unicode
Written by: Mike
Last updated by: Roman Solomatin
Created on: Feb 21, 2009
Last updated: 11 years ago
Update Article

Revisions

View all history