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?

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


Please Help Members By Posting Answers For Below Questions

What is coercion?

915


Explain the use of with statement?

841


Explain try, raise, and finally?

925


Which database is best with python?

932


What are migrations in python?

865


How to terminate a python subprocess launched with shell=true?

1005


Why is the order in python dictionaries and sets arbitrary?

1078


What is a sympy?

1200


Is python supports multithreading?

939


Does python support multiple inheritance?

882


What is the difference between range() and xrange() functions in python?

1151


What is wrong with the code?

899


What is the best free ide for python?

840


Can python handle big data?

884


What is meant by mutex in python?

1087