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 |
Specify the differences between pyramid, django, and flask.
Is Python good for backend?
What are the use of tuples in python?
How useful is python?
Different file processing modes supported by python?
What are the two ways to use python interpreter?
What is a metaclass in Python?
What does the list comprehension do?
What are the disadvantages of the Python programming language?
What is a 4 tuple?
What does a continue statement do in python?
How do you disconnect from the database?