Using Japanese with Rodeo's IPython @ Windows

Python on Windows

In an environment where I have to use a Windows machine, I have to go into a Linux server or a virtual machine to check the operation in Python, so I created a Python environment.

Installed

-Python3 in Anaconda

trouble

It freezes when I input Japanese into Rodeo's IPython console.

Apparently, the input / output of the IPython console is UTF-8, but the reason is that the sys.stdin and sys.stdout ʻencoding of python inserted in Anaconda are cp932`.

Anyway solution

I managed to create a batch file like the one below and specify it in the "Python Command" of Rodeo's settings.

python-utf8.bat


@echo off
setlocal
set PYTHONIOENCODING=utf-8
%~dp0\python.exe %*
endlocal

It feels like it's not smart.

Recommended Posts

Using Japanese with Rodeo's IPython @ Windows
When using optparse with iPython
Japanese with matplotlib
Python starting with Windows 7
I tried using Ipython
Speaking Japanese with OpenJtalk
Start IPython with virtualenv
Make slides with iPython
OpenJTalk on Windows10 (Speak Japanese with Python from environment construction)
Using Docker (Hyper-V) with PyCharm on Windows 10 (as of August 2017)
Using X11 with ubuntu18.04 (C)
Python with VS Code (Windows 10)
Send Japanese email with Python3
Parallel computing with iPython notebook
Run python with PyCharm (Windows)
Using Graphviz with Jupyter Notebook
[S3] CRUD with S3 using Python [Python]
Messaging with AMQP using kombu
Japanese morphological analysis using Janome
Using Quaternion with Python ~ numpy-quaternion ~
Try using matplotlib with PyCharm
venv environment with windows powershell
Games using IMU with SenseHat
[Python] Using OpenCV with Python (Basic)
Try using OpenCV on Windows
Use Windows 10 fonts with WSL
Play with Jupyter Notebook (IPython Notebook)
Japanese morphological analysis with Python
Run Apache-Spark with IPython Notebook
Time synchronization (Windows) with Python
Graph drawing with IPython Notebook
Blogging with Pelican on Windows
Try using folium with anaconda
Using OpenCV with Python @Mac
Send using Python with Gmail
Use Bokeh with IPython Notebook
Japanese file enumeration with Python2 system on Windows (5C problem countermeasure)