Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unicode weirdness
#2
I had a similar issue with printing filenames. I have some files with Chinese and other characters, which breaks the formatting.
To fit them in one line, I had to use wcwidth to get the real width of the Unicode chars.
Instead of using the len function to get the width, I used wcwidth.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
unicode weirdness - by Skaperen - Jul-30-2018, 05:46 AM
RE: unicode weirdness - by DeaD_EyE - Jul-30-2018, 07:49 AM
RE: unicode weirdness - by Skaperen - Jul-30-2018, 07:08 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  clean unicode string to contain only characters from some unicode blocks gmarcon 2 4,019 Nov-23-2018, 09:17 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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