killuahzl/python-nlpir — pull request #3 by hustcalm (2013-11-26 14:39:23+00:00)
Title: Bug fix for encoding prolems under Linux with barely UTF-8 support

I'm using Linux Mint 15 with barely UTF-8 support, running `python demo.py` will give the wrong encoding outputs.

Using `unicode` and then encode it to the specified encoding is a good practice and easy to port across platforms.

Also a file called `demo_linux-utf8.py` demonstrating encoding problems is presented.