python - Pycharm reading ucs-2 -


i use python 2.7 on win 7 , read in ucs-2 file. if print out lines, nothing shown.

f = open('test.log', mode='r+') line in f: print(line)

how can display lines in pycharm console , how can change codec?


Comments

Popular posts from this blog

Sort a complex associative array in PHP -

c++ - Fill edges and center of array/vector with different values -

ios - Chat Bubble in Swift3 -