Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unicode question
#1
Hi,I am looking amongst the zillions of unicode chars and I can print them like this.
(I understand that in python 3 the leading "u" is not necessary any more.)
# chess
chess = [u'\u2654', u'\u2655',u'\u2656',u'\u2657',u'\u2658',u'\u2659']
for x in chess:
    print('chess:',x)
#from the dingbats char table
scissors = [u'\u2700']
print(scissors)
Now i turn to the www.unicode.org (new website !),
and i can select chars from tables,
just like the dingbats table i found somewhere.
Only, the many tables on the unicode.org site, seem to code the chars differently.
like so => "1C00" -> this is the first letter in the "Lepcha" language.
When i print(u'\u1C00'), it prints something else.
What is going wrong ?

Paul
It is more important to do the right thing, than to do the thing right.(P.Drucker)
Better is the enemy of good. (Montesquieu) = French version for 'kiss'.
Reply


Messages In This Thread
unicode question - by DPaul - Jun-18-2020, 02:48 PM
RE: unicode question - by DeaD_EyE - Jun-18-2020, 05:31 PM
RE: unicode question - by DPaul - Jun-18-2020, 05:52 PM
RE: unicode question - by DPaul - Jun-19-2020, 07:55 AM
RE: unicode question - by DeaD_EyE - Jun-19-2020, 10:54 AM
RE: unicode question - by DPaul - Jun-19-2020, 03:06 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  clean unicode string to contain only characters from some unicode blocks gmarcon 2 4,043 Nov-23-2018, 09:17 PM
Last Post: Gribouillis
  Python 2 Unicode question Skaperen 2 2,534 Sep-08-2018, 06:44 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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