I need to get characters from string "test?àâ". My output contains "�" in place of accented chracters. My python code is given below.
# -*- coding: utf-8 -*-
import unicodedata
s = 'test?àâ'
for c in s:
print c
Output :
t
e
s
t
?
�
�
�
�
I need to get characters from string "test?àâ". My output contains "�" in place of accented chracters. My python code is given below.
# -*- coding: utf-8 -*-
import unicodedata
s = 'test?àâ'
for c in s:
print c
Output :
t
e
s
t
?
�
�
�
�