tcalmant / python-javaobj

Extended fork of python-javaobj from http://code.google.com/p/python-javaobj/
Apache License 2.0
81 stars 19 forks source link

Normalize the use of unicode strings #26

Closed tcalmant closed 5 years ago

tcalmant commented 5 years ago

Currently, javaobj is loading Java strings as str objects. This is OK in Python 3, but wrong in Python 2. All strings loaded from a Java serialized file should be of type unicode in Python 2.

Important note: this can break some existing code...

tcalmant commented 5 years ago

Fixed in commits:

Note: Now, JavaString inherits from unicode in Python 2 instead of str. Nothing changes in Python 3.