Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is used to create Unicode string in Python?



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

Post New Answer

More Python Interview Questions

How many types of operators python has?

0 Answers  


Explain other string literals?

0 Answers  


Do monkeys sleep at night?

0 Answers  


Explain the five benefits of using python?

0 Answers  


Find all occurrences of a substring in Python

0 Answers  


What does tuple mean?

0 Answers  


Differentiate between deep and shallow copy?

0 Answers  


How much ram is required for python?

0 Answers  


Are sets hashable python?

0 Answers  


How many keywords are there in python? And why should we know them?

0 Answers  


What is the default argument in all the functions inside a class?

0 Answers  


Explain how you can minimize the memcached server outages in your python development?

0 Answers  


Categories