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 list comprehension how to define it and when to use?
Write program to validate the email address in python?
What is python idle used for?
What is numpy? Is it better than a list?
Is Python object-oriented or functional programming?
What is the difference between ‘match’ and ‘search’ in python?
Which programming language is best for finance?
Why do list comprehensions write to the loop variable, but generators don’t?
What is a dictionary in python?
What are built in types in python?
What super does in python?
Explain what is Flask & its benefits?