Skip to content

Commit 25138a9

Browse files
committed
PullRequest: 54 set local to UTF-8 encoding
Merge branch set_locale of [email protected]:oceanbase/OBShell-SDK-Python.git into master https://code.alipay.com/oceanbase/OBShell-SDK-Python/pull_requests/54 Signed-off-by: 雪染 <[email protected]> * set local to UTF-8 encoding
1 parent 83158e3 commit 25138a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

obshell/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
import locale
17+
locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
18+
1619
from .service.client_set import ClientSet
1720
from .service.client_v1 import TaskExecuteFailedError, OBShellHandleError, IllegalOperatorError
1821
from .service.client_v1 import IllegalOperatorError, ClientV1

0 commit comments

Comments
 (0)