When I ran Python on SublimteText, I got a ʻUnicodeEncodeError` as soon as I handled Japanese data.
I had to set the build individually to use python installed via pyenv instead of standard python, but the problem was that there was no setting for Japanese.
{
"cmd": ["/hoge/.pyenv/shims/python", "$file"],
"selector": "source.python",
"env": {"LANG": "ja_JP.UTF-8"},
"file_regex": "file \"(...*?)\", line ([0-9]+)"
}