What is used to create Unicode string in Python?
Answer / 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 |
What is slug in python?
What are the various types of operators in Python?
What are python libraries? Name a few of them.
Is python written in python?
Why is python so popular?
What is a singleton design pattern?
Explain pickling and unpickling.
How do you use super in python?
What is the procedure to extract values from the object used in python?
What is complex type in python?
Is nodejs faster than python?
Name some commonly used built-in modules in python?