I want to use a url(http://192.xxx.x.xxx:8080/가나다.png) that contains Korean characters to show an image. The server sent me an error starting with
UnicodeEncodeError...
I tried sys.setdefaultencoding
and unicode_literals
, but that didn't solve the problem.
What could be the reason for this?
How can I make sure Korean characters are dealt with properly?
Using test.encode("utf-8")
is not an option.