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 |
Name some python libraries?
What is the process of compilation and linking in python?
What is the best python ide for beginners?
What is pydoc command?
What is the script in python?
What is numpy? Is it better than a list?
Is python the right choice for Web based Programming?
How to reverse a string in python
How does python handle memory management?
What should I make with python?
How do I get a list of all files (and directories) in a given directory in Python?
Explain about assert statement?