After the string is intercepted by substr, the string is truncated by substr after ajax is passed to the foreground. after ajax is passed to the foreground, the string is blank. only English-only characters can be displayed, and Japanese characters can be blank, which of the following is the reason. ------ Solution ---------------------- what is returned by json? Chinese must be UTF-8 encoded before json output ------ solution ------------------- after the string is intercepted by substr, it is blank after ajax is uploaded to the foreground
After the string is intercepted by substr, it is blank after ajax is uploaded to the foreground. only English characters are allowed to be displayed, and Japanese characters are empty. Which of the following is the reason.
------ Solution ----------------------
Json return? Chinese must be UTF-8 encoded for json output
------ Solution ----------------------
What if I don't intercept?
------ Solution ----------------------
Does the batch upload function use UTF8?
------ Solution ----------------------
In what format? Is the code correct?
------ Solution ----------------------
Please ensure that the file encoding format is UTF8 without BOM. the default php encoding is UTF-8, and the mysql encoding is also utf-8. garbled characters will stay away from you!