+ 1
Printing unicode
hey is there any way to print Unicode characters into command prompt? when I try to print Unicode character it says 'charmap' codec can't encode characters in position 0-1: character maps to <undefined> however it prints OK in python IDLE
4 odpowiedzi
+ 1
yeah it was the first thing I did
but it did not work
+ 1
it doesn't work either
:(
I'm beginning to think that it can't be done because command prompt can't accept some Unicode characters or something
0
try to start your program with this comment
# -*- coding: utf -8 -*-
0
you can also use:
print(str(yourstringvariable).encode('utf-8'))