Answer Posted / chaitanya
Unicode is a system to represent characters from all the world's different languages.
Two methods can be used to create unicode string:
unicode() method is unicode(string[, encoding, errors]), its arguments should be 8-bit strings. The first argument is converted to Unicode using the specified encoding, if encoding argument left, the ASCII encoding is used for the conversion.
encode() method is encode([encoding], [errors='strict']), which returns an 8-bit string version of the Unicode string.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is coercion?
Explain the use of with statement?
Explain try, raise, and finally?
Which database is best with python?
What are migrations in python?
How to terminate a python subprocess launched with shell=true?
Why is the order in python dictionaries and sets arbitrary?
What is a sympy?
Is python supports multithreading?
Does python support multiple inheritance?
What is the difference between range() and xrange() functions in python?
What is wrong with the code?
What is the best free ide for python?
Can python handle big data?
What is meant by mutex in python?