Python Forum
tool wanted: to convert utf8 <-> unicode in hex
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
tool wanted: to convert utf8 <-> unicode in hex
#8
i do get Cyrillic just fine and readable (i can read some of it) when the command/program outputs genuine UTF-8 bytes. it works for me when i do os.write(1,...) of byte-type data. i think there is some config setting i don't have to cause print() to convert Unicode to UTF-8 by default (maybe term type).
Output:
lt1/forums /home/forums 13> py3 Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> x=os.write(1,b'\xd0\xaf\x0a') Я >>> lt1/forums /home/forums 14>

visit youtube and search for огонь дома. one of my favorite video viewing topics.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: tool wanted: to convert utf8 <-> unicode in hex - by Skaperen - May-21-2018, 06:09 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020