If I understand your question correctly, you can do this.
>>> s="㈲"
>>> s.encode("unicode_escape")
b'\\u3232'
Shows the unicode escape code as a source string.
More Related Contents:
- How to remove \xa0 from string in Python?
- Read and Write CSV files including unicode with Python 2.7
- Python – ‘ascii’ codec can’t decode byte
- How to convert a string to utf-8 in Python
- How to read Unicode input and compare Unicode strings in Python?
- Why does ENcoding a string result in a DEcoding error (UnicodeDecodeError)?
- How can I use io.StringIO() with the csv module?
- Python returns length of 2 for single Unicode character string
- How can I calculate a list modulo a numer in python?
- How to remove English words from a file containing Dari words?
- How can I read inputs as numbers?
- Why is a list comprehension so much faster than appending to a list?
- Why is parenthesis in print voluntary in Python 2.7?
- Implement MATLAB’s im2col ‘sliding’ in Python
- Python unicode equal comparison failed
- General Unicode/UTF-8 support for csv files in Python 2.6
- Selenium – MoveTargetOutOfBoundsException with Firefox
- How to split dictionary into multiple dictionaries fast
- How can I check if a Python unicode string contains non-Western letters?
- How do convert unicode escape sequences to unicode characters in a python string
- Reading a file with a specified delimiter for newline
- class method generates “TypeError: … got multiple values for keyword argument …”
- Python Pandas – Read csv file containing multiple tables
- PyQt GUI order of operations
- Win32api is not giving the correct coordinates with GetCursorPos() in python
- Can’t install pygame on mac
- Module imports and __init__.py
- What does backward-slash b do in Python?
- How to filter a DataFrame column of lists for those that contain a certain item
- The ‘pip==7.1.0’ distribution was not found and is required by the application