question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

handle printing in non-utf-8 shells

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
erohmensingcommented, May 22, 2019

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

0reactions
erohmensingcommented, Apr 8, 2021

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found