Little better CLI handling of Unicode in Py2

This commit is contained in:
Eevee (Lexy Munroe) 2016-01-28 01:40:08 -08:00
parent abf8e6372a
commit ef03259e0f

View file

@ -1,6 +1,7 @@
# encoding: utf8
from __future__ import print_function
import locale
from optparse import OptionParser
import os
import sys
@ -321,7 +322,7 @@ Dump options:
Additionally, load and dump accept a list of table names (possibly with
wildcards) and/or csv fileames as an argument list.
""".encode(sys.getdefaultencoding(), 'replace'))
""".encode(locale.getdefaultlocale()[1], 'replace'))
sys.exit(0)