How to convert string to unicode with unicode function

Convert to unicode

normal string to Unicode


print unicode('spam')         # Normal to Unicode

The code above generates the following result.





















Home »
  Python »
    Language Basics »




Python Basics
Operator
Statements
Function Definition
Class
Buildin Functions
Buildin Modules