阅读背景:

PHP: Transform incoming string to UTF-8, without any information what encoding it was

来源:互联网 

I'm having problems.

我有问题。

I have a REST API that uses json_encode to output data as JSON. However, sometimes data gets pushed to the API that is not UTF-8 data. And so when trying to output this data, json_encode throws an exception, because it can only handle UTF-8 data.I have a REST AP




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: