UnicodeEncodeError: 'charmap' codec can't encode character '\u1edf' in position 70: character maps to - Rasa Open Source - Rasa Community Forum

UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\u1edf’ in position 70: character maps to

post by TQuy on Jul 26, 2019

Whenever I input any message in rasa shell --debug, it keeps showing me this warning. Although it doesn’t affect the process, it prints a really long message

Bot loaded. Type a message and press enter (use ‘/stop’ to exit):
Your input → tìm chi nhánh ở Hà Nội
2019-07-27 09:15:23 DEBUG rasa.core.agent - Created a new lock for conversation ‘default’
2019-07-27 09:15:23 DEBUG rasa.core.tracker_store - Creating a new tracker for id ‘default’.
2019-07-27 09:15:23 DEBUG rasa.core.processor - Received user message ‘tìm chi nhánh ở Hà Nội’ with intent ‘{‘name’: ‘buu_cuc_gan_nhat’, ‘confidence’: 0.884937047958374}’ and entities ‘[{'start': 16, 'end': 22, 'value': ‘hà nội’, 'entity': 'local_address', 'confidence': 0.9651796447308312, 'extractor': 'CRFEntityExtractor'}]’
— Logging error —
Traceback (most recent call last):
File “c:\anaconda3\lib\logging_init_.py”, line 1037, in emit
stream.write(msg + self.terminator)
File “c:\anaconda3\lib\encodings\cp1252.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode character ‘\u1edf’ in position 70: character maps to

My files are below

post by Juste on Jul 29, 2019

Hey @TQuy. It’s because you are running Rasa in a debug mode which then prints all info for all processes so that you can spot potential errors and stuff. If you don’t want to see those messages simply run rasa shell

post by TQuy on Jul 30, 2019

But it destroys the interactive learning

post by TQuy on Aug 2, 2019

use --skip-visualization as suggested