here's my file
And here's my outputCode:<? $LANG["default_value"] = "Giá trị mặc định"; $LANG["update"] = "Cập nhật"; print_r($LANG); ?>
So, what's goin on :| , how to fix it?Cn_US.UTF-8
| SitePoint Sponsor |
here's my file
And here's my outputCode:<? $LANG["default_value"] = "Giá trị mặc định"; $LANG["update"] = "Cập nhật"; print_r($LANG); ?>
So, what's goin on :| , how to fix it?Cn_US.UTF-8


You might try using this at the top of the page:
header('Content-type: text/html; charset=UTF-8') ;
Not sure if it will do anything though.


well for one thing php doesnt support unicode too well
then send a header as mention above
also set the meta html tag with utf8
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
also use mbstring php extension for unicode string manioulation
and make sure your file is saved in unicode encoding
i don't think problem with encoding.
i think it's occurred from web server :-?
because with same this file, it running okey on other server
i encoded this file with many character encoding: utf-8 , iso 8859-1
but still this error :|
Bookmarks