zjn0505 / xkcd-Android

xkcd app for xkcd comics
https://play.google.com/store/apps/details?id=xyz.jienan.xkcd
Apache License 2.0
32 stars 1 forks source link

Encoding problem #33

Closed Sayanel01 closed 1 year ago

Sayanel01 commented 1 year ago

On comic 971, the title text does not display correctly

See Screenshot_20230108-172054

I did not encounter this on any other comic

zjn0505 commented 1 year ago

Thank you. I know there are several comics having this problem.

This one can be found at https://xkcd.com/971/info.0.json where the apostrophe is encoded as \u00e2\u0080\u0099.

I am not a pro in encoding, and only did a little research on how to handle it, but still no results.

zjn0505 commented 1 year ago

I've updated it from my cloud xkcd storage.

If you go to "Settings -> Storage Management -> xkcd comics -> DELETE INFO".

It will help to rebuild the local info storage and fix the problem.

Sayanel01 commented 1 year ago

It's fixed on my side too Thanks

Sayanel01 commented 1 year ago

I found another : title of 1053 showing of as "The bacon"

While possible to fixes these case by case, is there no faster method?

Sayanel01 commented 1 year ago

Another in 1147 title text, PokéMon

Edit : And title text of 1234. I have no idea if the is useful or not.

zjn0505 commented 1 year ago

Thank you.

I've updated both and also made a database query and found another 2 comics with issues and have them fixed.

I think it is possible to decode properly, I know another actively maintained xkcd app has made it.

https://github.com/tom-anders/Easy_xkcd/pull/157

The quickest thing for now is to correct case by case. I will look into it in the future.