开发者

getting weird symbols from yql

开发者 https://www.devze.com 2023-03-04 07:29 出处:网络
I\'m requesting a website from yql using something like: select * from html where url=\"http://www.somerandoms开发者_如何学运维ite.com\"&format=json&callback=process

I'm requesting a website from yql using something like: select * from html where url="http://www.somerandoms开发者_如何学运维ite.com"&format=json&callback=process

The problem is I'm getting weird symbols back like: �

Is this because of yahoo or from the site that I'm using and how can I fix this?


You're probably missing a <meta> tag which defines the charset:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
0

精彩评论

暂无评论...
验证码 换一张
取 消