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 -

vb.net - How to ignore if a cell is empty nothing -

recursion - Can every recursive algorithm be improved with dynamic programming? -