Martin v. Löwis wrote:
On Linux, try gucharmap or kcharselect.
Or gnome-character-map if using Gnome.
Regards,
Björn
--
BOFH excuse #25:
Decreasing electron flux
--
http://mail.python.org/mailman/listinfo/python-list
I want to make a little Python utility where a user can enter the
unicode numerical code and get the actual symbol back in utf-8.
For example, a user could enter something like u221E
And get back ∞
Now, this does seem to work:
print u\u221E
∞
However how can I change it so it works with a
Why don't you use ord?
2008/2/10 [EMAIL PROTECTED] [EMAIL PROTECTED]:
I want to make a little Python utility where a user can enter the
unicode numerical code and get the actual symbol back in utf-8.
For example, a user could enter something like u221E
And get back ∞
Now, this does seem
I want to make a little Python utility where a user can enter the
unicode numerical code and get the actual symbol back in utf-8.
For example, a user could enter something like u221E
I'm puzzled why the user would enter u221E - why not just 221E?
And get back ∞
Now, this does seem to
[EMAIL PROTECTED] wrote:
However how can I change it so it works with a string variable?
print unicode(\u221E) doesn't seem to do it.
Sure, that's because \u only works in unicode strings. You'd need
to encode your \u-containing string to a unicode string. Perhaps
this'll help:
def
Thanks to both of you. Those approaches make sense. Here's the final
result if you're curious:
http://utilitymill.com/utility/Display_Unicode_Char_From_Hex
Not sure what operating system you are using. On Windows, I recommend
that you look at the charmap.exe utility. On Linux, try
On Feb 10, 4:30 pm, Martin v. Löwis [EMAIL PROTECTED] wrote:
I want to make a little Python utility where a user can enter the
unicode numerical code and get the actual symbol back in utf-8.
For example, a user could enter something like u221E
I'm puzzled why the user would enter u221E -