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,248
  • 4
  • 33
  • 54

0 Answers0