Get Python to print out another language (Korean) – part 2

I was stuck again when I actually tried printing out Korean using Python. I had to to use u’something in Korean’.

See the below example.

 params['error_email'] = u'이메일 주소를 올바르게 입력해주세요.' 

Here is another example with regex.

 USER_RE = re.compile(ur'[가-힣]+$|^[a-zA-Z]+$') 

 

Leave a comment