# -*- coding: utf-8 -*- jstr = u"日本語" print jstr.encode('iso-2022-jp') print jstr.encode('euc-jp') print jstr.encode('euc-jisx0213') print jstr.encode('euc-jis-2004') print jstr.encode('iso-2022-jp') print jstr.encode('iso-2022-jp-1') print jstr.encode('iso-2022-jp-2') print jstr.encode('iso-2022-jp-3') print jstr.encode('iso-2022-jp-ext') print jstr.encode('iso-2022-jp-2004') print jstr.encode('utf-7') print jstr.encode('utf-8') print jstr.encode('utf-16') print jstr.encode('utf-16-be') print jstr.encode('utf-16-le') print jstr.encode('cp932') #文字化けしない。 print jstr.encode('shift-jis') #文字化けしない。 print jstr.encode('shift-jisx0213') #文字化けしない。 print jstr.encode('shift-jis-2004') #文字化けしない。
Tuesday, June 20, 2017
mojibake mongon
Subscribe to:
Post Comments (Atom)
Going one step further with Kotlin & gRPC
Recently, I tried using Quarkus with Kotlin for grpc. I have worked with grpc for communication between microservices in Java & Golang. ...
-
As you might have guessed, I got very busy between March 2021 & March 2022. In fact I have been very busy at work & play between Ma...
-
The JDBC type BIGINT represents a 64-bit signed integer value between -9223372036854775808 and 9223372036854775807. The corresponding SQ...
No comments:
Post a Comment