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
Tell us something about garbage collector in python?
What is hierarchical inheritance?
What is an elif in python?
How to reverse a string in python
What is the purpose of is, not and in operators?
What is break in python?
What does %d do in python?
How to remove duplicates from a list in python ?
How strings can be sliced?
Is python good for oop?
Is python a low level language?
Why do you need to make your code more readable?
How is Multithreading achieved in Python?
How do I start python on windows?
Define python?