I\'m having a trouble transferring Japanese characters from PHP to JavaScript via json_encode.
Here is the raw data read from csv file.
PRODUCT1,QA,
I found that the problem was PHP fgetcsv() function not being able to recognize the characters in EUC-JP. Apparently, fgetcsv() uses the system locale setting to make assumptions about character encoding. I have added below line before doing fgetcsv() as the referenced example shows(but in a reversed way), and it fixed the problem!
setlocale(LC_ALL, 'ja_JP.EUC-JP');