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
List some pdb commands.
What is super () in python?
How do you write if else in python?
What is python xrange?
How to create prompt in the console window?
What is python programming language?
Which are the file related libraries/modules in python?
Can we overload constructor in python?
Does python have long?
What is the python syntax for switch case statements?
What is a flask?
How do you alphabetize a list in python?
What are the disadvantages of python?
Are sets hashable python?
What does this mean: *args, **kwargs?