Hi,
I'm writing plugin which will communicate with http server.
When I receive answer with polish national fonts which i want to display on shell it raise the error.
Bellow I gave the server response examples which makes trouble:
Zitat
{"error":"Hasło jest za krótkie (przynajmniej 5 znaków)"}
or
{"error":"Has\u0142o jest za kr\u00f3tkie (przynajmniej 5 znak\u00f3w)"}
Whet I simple use:
it displays me communicate which is not acceptable (no polish fonts):
Zitat{"error":"HasĹo jest za krĂłtkie (przynajmniej 5 znakĂłw)"}
and in case that I point that it's unicode
the error is raisen:
ZitatUnicodeEncodeError: 'ascii' codec can't encode character u'\u0142' in position 13: ordinal not in range(128 )