php - How to get fgetcsv to read UTF8 characters on Windows? -
i reading serbian utf8 file fgetcsv
. while on linux
setlocale(lc_all,"sr_rs.utf8")
does trick, couldn't characters loaded on windows. furthermore, when try save string database, saves until first non-latin character (this related application though). phpstorm debugger shows question mark instead of non-latin character. whereas if define variable value inside phpstorm contain non-latin characters, shows correctly.
string displayed wrongly in both browser (unicode encoding) , phpstorm debugger. variable unicode value defined in code shows correctly on browser/ide output.
i tried setting headers , using utf8_encode
suggested here, didn't work. thanks.
Comments
Post a Comment