handle printing in non-utf-8 shells
See original GitHub issueWe 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
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
How to print a variable that contains unprintable characters?
As for echo , it depends on the shell. Some versions of echo handle backslash-escapes by default, some don't. Bash's doesn't, zsh's does:...
Read more >How to handle utf8 on the command line (using Perl or Python)?
Sebastian pointed out, the code is printing characters from the input line, and the last character will be a newline, so there really...
Read more >encoding - allows you to write your script in non-ASCII and ...
This pragma is used to enable a Perl script to be written in encodings that aren't strictly ASCII nor UTF-8. It translates all...
Read more >encoding - allows you to write your script ... - Perl Documentation
Without use encoding 'utf8'; , it will print 4 instead, since $string is three octets when interpreted as Latin-1. #DO NOT MIX MULTIPLE...
Read more >How to "cd" to non utf8 directory - Server Fault
Make sure it really isn't UTF-8. echo $LANG ; if the returned string didn't end in .UTF-8 , your terminal isn't set to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tmbo I think this should be handled soon, as it has shown to break
rasa init
here and here@wahab250 please open a new issue with all of the relevant info (traceback, content of data file etc) that the issue template asks you for