E
Elaine Jackson
What's the trick for using nonascii symbols in string literals?
What's the trick for using nonascii symbols in string literals?
Troels Therkelsen said:What's the trick for using nonascii symbols in string literals?
Here's one way of doing it:
Python 2.4a1 (#1, Jul 9 2004, 21:24:13)
[GCC 2.95.3 20010315 (release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Or, in other words, use backslash+x+hexadecimal number representing the byte
value of the symbol you wish to use. Be aware that exactly which symbol
appears when printed depends on the character encoding of your terminal.
What's the trick for using nonascii symbols in string literals?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.