복붙노트

[PYTHON] 파이썬에서 유니 코드 이스케이프 시퀀스가있는 유니 코드 텍스트 [duplicate]

PYTHON

파이썬에서 유니 코드 이스케이프 시퀀스가있는 유니 코드 텍스트 [duplicate]

안녕, 내가 문자열이 있다고 가정 해보자.

test
'\\u0259'

이스케이프 된 백 슬래시에 유의하십시오.

어떻게 그것을 각각의 유니 코드 문자열로 변환합니까?

해결법

  1. ==============================

    1.

    >>> print 'test \\u0259'.decode('unicode-escape')
    test ə
    
  2. from https://stackoverflow.com/questions/4004431/text-with-unicode-escape-sequences-to-unicode-in-python by cc-by-sa and MIT license