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
Why is that none of my threads are not running? How can I make it work?
Write a program to show the singleton pattern used in python.
How to count the occurrences of a list item?
Short description of the scoping rules?
Why anaconda is used for python?
What is the use of map in python?
Does python sleep use cpu?
What are tuples and relation?
How would you define a protected member in a python class ?
What is "typeerror: 'module' object is not callable"?
How do you create a dictionary which can preserve the order of pairs?
What is Pickling and unpickling?
How can you find length of a tuple in python?
What is the use of assertions in python?
Is python a scripting or programming?