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 multithreading? Give an example?
Why is that none of my threads are not running? How can I make it work?
Should I learn r or python first?
What is a module and package in python?
What are the different file processing modes supported by python?
What is asynchronous python?
What is difference between raw_input and input in python?
Is python faster than c#?
What is polymorphism in python with example?
Is python better than java?
Is python the future of programming?
What are the two modes of python?
Why do we need tuples?
Which is the package fastest form of python?
How do I do variable variables in python?