Rasa: handle printing in non-utf-8 shells

Created on 8 May 2019  路  5Comments  路  Source: RasaHQ/rasa

We should make sure that when we print things to the console (rasa init), interactive learning, etc., any ascii characters out of normal, like accents or emojis, are handled correctly so that they don't break the method

cc https://forum.rasa.com/t/unicodeencodeerror-ascii-codec-cant-encode-character-u0001f916-in-position-22-ordinal-not-in-range-128/9478, maybe also https://github.com/RasaHQ/rasa/issues/3088

Other codecs I've run into: ascii, gcb, charmap

area stale type type

Most helpful comment

@tmbo I think this should be handled soon, as it has shown to break rasa init here and here

All 5 comments

@tmbo I think this should be handled soon, as it has shown to break rasa init here and here

Current fix from user side: instead of running rasa {command}, run PYTHONIOENCODING='utf8' rasa {command}.

We also need to make sure input (e.g. reading NLU files) is read correctly

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically closed due to inactivity. Please create a new issue if you need more help.

Was this page helpful?
0 / 5 - 0 ratings