What is used to create Unicode string in Python?

Questions by RajivPrasad   answers by RajivPrasad

Showing Answers 1 - 3 of 3 Answers


  • Mar 8th, 2007

add u before the string

>>> u 'test'


  • Aug 3rd, 2015

Add unicode before the string. Ex: unicode(text) resulting in text

  Was this answer useful?  Yes


  • Aug 29th, 2017

"u" should be added before the string

  1. a=u"Python"

  2. type(a) -> will give you unicode

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.


Related Answered Questions


Related Open Questions