i18n
PHP Tutorial
2026-06-14
38
PHP's strings are binary safe and mostly oblivious to character encodings and everything is fine if you just pass the data through. If you need to manipulate it you will need to do some work.
•
setlocale
•
utf8_decode
•
iconv
•
mbstring
•
preg_* functions support UTF-8
•
pecl/translit
•
Full ICU-based Unicode Support eventually
php.ini
default_charset = "utf-8"