Closed tcalmant closed 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.
javaobj
str
unicode
Important note: this can break some existing code...
Fixed in commits:
Note: Now, JavaString inherits from unicode in Python 2 instead of str. Nothing changes in Python 3.
JavaString
Currently,
javaobj
is loading Java strings asstr
objects. This is OK in Python 3, but wrong in Python 2. All strings loaded from a Java serialized file should be of typeunicode
in Python 2.Important note: this can break some existing code...