Skip to main content

Supports encoding conversion between `unicode` and `ibm935` in Python

Project description

version license


The codec ibm935 is not yet officially supported. This package is designed for conversion between unicode and ibm935.


Using pip:

$ pip install ibm935 

Or manually download the archive and run the command after extracting the stuff inside:

$ python install


Before using this codec, import the module:

import ibm935

Then we can convert unicode strings into ibm935 codec as usual:

# Python 2
encoded_bytes = u"我爱Python这么美好的语言!".encode("ibm935")
decoded_string = encoded_bytes.decode("ibm935")

# Python 3 - the prefix `u` can be omitted
encoded_bytes = "我爱Python这么美好的语言!".encode("ibm935")
decoded_string = encoded_bytes.decode("ibm935")

We can also write files using this codec:

with open("ibm935.txt", "w", encoding="ibm935") as f:


  • This package is not yet fully tested.
  • There is a tough situation where writing a file with separate words(double-byte) causes redundant bytes like \x0f\x0e.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ibm935, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size ibm935-0.2.1.tar.gz (40.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page