PGO-mapscan-opt
PGO-mapscan-opt copied to clipboard
Customizing Telegram message in local language?
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.
This should be doable with #239 i think, but the author must confirm that...
@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: 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 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.
#255 adding zh-HK as HK Chinese in this PR