PGO-mapscan-opt icon indicating copy to clipboard operation
PGO-mapscan-opt copied to clipboard

Customizing Telegram message in local language?

Open toshioson opened this issue 8 years ago • 5 comments

I am trying to customize the Telegram message by adding some Chinese characters but got the following error message when running it.

[-] Connection Error during Telegram, error: 'ascii' codec can't decode byte 0xe7 in position 164: ordinal not in range(128)

Could you please advise how can I change and fix this? Thanks.

toshioson avatar Sep 23 '16 07:09 toshioson

This should be doable with #239 i think, but the author must confirm that...

furier avatar Sep 23 '16 18:09 furier

@furier thanks for referencing PR #239 , I am not sure why so far PGO-mapscan-opt cannot work with non-ASCII text even though I see that seikur0 has put the # -- encoding: utf-8-- at the beginning of main0.py but I am rather novice about coding with python/JSON.

I have being using PokeAlarm with another map in sending alert in zh-HK Chinese address and want to do the same with the map but so far no clue.

I have also tried to copy PR #217 and make a language for Hong Kong, prepared accordingly mapscan.js and a hongkong.json but when error during launch.

toshioson avatar Sep 24 '16 02:09 toshioson

@toshioson: Make a pull request and I'll try to make it work. It's a little bit difficult, see here for some interesting informations.

seikur0 avatar Sep 24 '16 13:09 seikur0

@seikur0 Thanks for looking into this and I will try to make a PR on it. Maybe I shall start with adding the local language for pokemon names and in the mapscan.js first.

toshioson avatar Sep 25 '16 16:09 toshioson

#255 adding zh-HK as HK Chinese in this PR

toshioson avatar Sep 27 '16 10:09 toshioson