gnuns / allOrigins

:alien: Pull content from any page as JSON via API

Home Page:https://allorigins.win/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chinese Characters garbled

zolrath opened this issue · comments

Hello!
I'm using this package to retrieve page titles and it's come to my attention that it doesn't seem to keep the encoding of Chinese characters.

https://api.allorigins.win/get?url=https://zhidao.baidu.com/question/509882629.html

I've tried raw and specifying various encodings:

https://api.allorigins.win/raw?url=https://zhidao.baidu.com/question/509882629.html&charset=UTF-8

Is there something I'm missing to preserve the text?

Thanks for making this great project!

Hi, @zolrath!
Thank you for reporting, indeed there was a bug on the charset feature.
Now it should work as expected. Please try again using the gbk encoding: