A project to convert any characters and binary data to and from each other. like base64
due to the fuzzy logic, module basechinese
is not recommended
from basechinese.encoder import encode
from basechinese.decoder import decode
print(encode(b"Hello, World!"))
hw = "妃邦右盏复迂罚找岔卫益" # the result of encode(b"Hello, World!")
print(decode(hw))
from baseany.baseany import anyencode, anydecode
r = anyencode(b"Hello, World!", mode="CPN")
print(r)
print(anydecode(r))
Apache License 2.0
- Add more tests
- form a package
- add more docs
- calculate compression ratio
- host resources to other platforms
-
baseany
module can not parse!
chars when code page were chinese like bacl, more forsrc/baseany/bugs.py
- NOT FIXED