PureDark / H-Viewer

An android feed reader application which fetch data with selector and regular expression.
Apache License 2.0
1.74k stars 236 forks source link

GBK编码网站中文乱码 #54

Closed Soooya closed 7 years ago

Soooya commented 7 years ago

这个软件真是超棒!!! 只是GBK和GB2312的网页识别出的title和文字内容会乱码。 比如西祠胡同。 This app is really super Korean! but it seems not support GBK and GB2312.

zhihaofans commented 7 years ago

是哪个网站呢?如果是JSON的网站出现乱码的话,作者说下个版本修复

Soooya commented 7 years ago

自己试着给西祠胡同(比如[http://www.xici.net/b1114902])写的JSON,APP里全是菱形的乱码,用UTF8读GBK是会这样

zhihaofans commented 7 years ago

这个是json的,编码是在response header里的,目前获取编码的方式只是从网页的<meta charset="***">获取而已,所以json获取编码失败就直接utf-8了,作者说下个版本将会修复

PureDark commented 7 years ago

已修复,现在会优先从Response Header里取charset

Soooya commented 7 years ago

摸摸大~