how to print unicode in python? - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: how to print unicode in python? (/thread-1746.html) |
how to print unicode in python? - Skaperen - Jan-24-2017 the goal is to have a 100% unicode system with utf-8 being used in any/every 8-bit or 9-bit (or up to 15-bit) stream/storage. file names, file contents, internet connections, are typically 8-bit. i once developed a 1-36 bit wrapper for the DECsystem-20 TOPS-20 system and IBM System-360 MVS and later did a 1-32 bit version for Linux (which compiled unchanged in Windows and worked compatibly). anyway, back to unicode, utf-8, and python. when might we have it so we just type in any unicode character in a text string (as a source code literal or as input() data). python 4 ? i want to be able to print() a text string with unicode characters in it and have it come out right (the correct datacodes when redirected to a file and the correct character displayed on a terminal screen or printer). RE: how to print unicode in python? - snippsat - Jan-24-2017 Read more about this. Unicode HOWTO Quote:Since Python 3.0, the language features a str type that contain Unicode characters,Python 3 is all Unicode,problem can of course occurs because the outside world(OS,Files,Terminals,Files,Servers...)that are not all Unicode. There has been massive discussion about this topic, many correction has been made and Python 3.5 --> are really good(also talking with outside world). Python 3 decision to make all Unicode was the right decision,we have to hope that it get better in the outside world. Just a note all Shell/Terminal(Windows,Linux,Mac) can get correct arguments in Unicode into Python. Bye using Click click.echo(). Quote:but it has improved support for handling Unicode and binary data |