'ur' to have Python use the Raw-Unicode-Escape encoding : Unicode « Language Basics « Python
- Python
- Language Basics
- Unicode
'ur' to have Python use the Raw-Unicode-Escape encoding

#It will only apply the above \uXXXX conversion if there is an uneven number of
#backslashes in front of the small 'u'.
print ur'Hello\u0020World !'
print ur'Hello\\u0020World !'
Related examples in the same category