Question:
Write a program to read an ASCII string and convert it to a Unicode string encoded by utf-8.
Hints:
- Use unicode() function to convert.
Solution:
s = raw_input() u = unicode( s ,"utf-8") print u
Write a program to read an ASCII string and convert it to a Unicode string encoded by utf-8.
s = raw_input() u = unicode( s ,"utf-8") print u