Python: Unicode
What is Unicode
Unicode in String
String in Python 3 is a sequence of unicode characters.
You might see string prefix with u, for example
x = u"abc" print(x) # abc
The u-prefix has no meaning in python 3.
the u-prefix is allowed for compatibility with python 2.
In python 2, the u-prefix changes the string type to unicode. otherwise it is byte sequence.
Python, Unicode
Python, String
- Python: Quote String
- Python: Triple Quote String
- Python: String Escape Sequence
- Python: Unicode Escape Sequence
- Python: String Prefix Character (u f r b)
- Python: Raw String (r-prefix)
- Python: f-String (Format, Template)
- Python: Print
- Python: Join String
- Python: Format String (Convert to String)
- Python: String Operations and Methods
- Python: Search Substring
- Python: Split String
- Python: String, Check Case, Char Class
- Python: Letter Case Conversion
- Python: Unicode
- Python 2: Unicode Tutorial