M
M
Michael2016-04-01 22:55:49
Python
Michael, 2016-04-01 22:55:49

How to output japanese characters in python3 console?

Instead of Japanese characters in the console, it displays a square with a question, in IDLE it displays everything as it should.
How to withdraw?
98a59e40ac0547898c5063db48d84168.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Artem Klimenko, 2016-04-02
@aklim007

Fonts, in the IDE the font has support for Japanese characters, but not in the standard console.

I
Igor Alyakimov, 2016-04-01
@kaiten

# coding: utf-8
Place at the beginning of the file and set the encoding in ide to utf-8 , in windows cp1251 by default

A
Andy_U, 2016-04-02
@Andy_U

Install DejaVu Sans Mono console font in Pycharm (so I remember where I got it). It's in Settings->Editor->Color&Fonts->Console Font. I also made line spacing 0.99 there so that sympy does not have breaks between lines, where it is not necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question