0

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
?
�
�
�
�
Tajinder
  • 2,128
  • 3
  • 28
  • 46

0 Answers0