SuperMeepBoy / wikitransbot

Twitter bot for Wikitrans
https://wikitrans.co/
MIT License
3 stars 2 forks source link

[BUG][Windows] Accents are not displayed #4

Closed SuperMeepBoy closed 3 years ago

SuperMeepBoy commented 3 years ago

When setting a text with accents in the config.json, the bot will not write the accents. The bug does not occur on Linux, only on Windows.

Expected Behavior

Accents should be displayed.

Current Behavior

Accents are not displayed.

Possible Solution

Use .encode('utf-8') whenever displaying text is needed.

Steps to Reproduce

  1. Write a text with accents in the config.json (for example for the answer_template value)
  2. Run the bot in order to trigger it and display that text
SuperMeepBoy commented 3 years ago

Not fixed.