Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to print UTF-8
#1
my string is already in UTF-8 form. that is, 1 to 6 byte codes (octets) in sequence per character and the codes are in range(256) (could have been in bytes but is in str). how do i tell the print function in Python3 and the print command in Python2 that the string is already in UTF-8 form? does converting it to bytes first, help to print it right? do i need to set environment variable LC_ALL to some value?
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
how to print UTF-8 - by Skaperen - Aug-16-2018, 04:51 AM
RE: how to print UTF-8 - by Axel_Erfurt - Aug-16-2018, 09:34 AM
RE: how to print UTF-8 - by Skaperen - Aug-17-2018, 02:43 AM
RE: how to print UTF-8 - by Axel_Erfurt - Aug-17-2018, 06:51 AM
RE: how to print UTF-8 - by Skaperen - Aug-17-2018, 10:37 PM
RE: how to print UTF-8 - by Larz60+ - Aug-18-2018, 01:09 AM

Forum Jump:

User Panel Messages

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