Home:ALL Converter>How to show Japanese characters in Spyder iPython console?

How to show Japanese characters in Spyder iPython console?

Ask Time:2018-07-23T16:52:03         Author:Aaron Bramson

Json Formatter

I am using Conda Spyder GUI via bash on Ubuntu on Windows to access a database that contains Japanese character fields. At first, when I output that data to the iPython console I could only see boxes as stand-ins for the characters.

Then I installed some additional Japanese fonts, and one of them "mikachan" appeared in the list of rich text fonts and Spyder started using it for Japanese characters in the editor and console.

I installed even more Japanese fonts, and some more of them showed up in the rich text font list, but selecting them has no effect on the font being used in the editor and console. Even though some are monospace fonts, they do not show up in the list of plain text fonts.

I thought the option to choose which font is used for Japanese characters would be in the Spyder preferences, but it's actually not. (They are being rendered, but not in a font of my choosing.)

How do I change the Japanese character font used in Spyder's iPython console?

(note: Spyder from WinPython on Windows does not have this problem, so it might be something specific to Anaconda or Ubuntu.)

Author:Aaron Bramson,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/51474900/how-to-show-japanese-characters-in-spyder-ipython-console
yy