Java modified UTF-8 strings in Python

前端 未结 4 965
广开言路
广开言路 2021-01-12 15:24

I am interfacing with a Java application via Python. I need to be able to construct byte sequences which contain UTF-8 strings. Java uses a modified UTF-8 encoding in

4条回答
  •  失恋的感觉
    2021-01-12 15:29

    I know this question is very very old, but I still want to contribute, since I got in the same problem and solved it

    I found the implementation of this modified utf8 in the openjdk sources and translated it to python. here is a link to the gist i created.

提交回复
热议问题