[IGN-4991, IGN-4996]system.file.writeFile encoding

Once I decided the built in ways were broken, I just built a bigger hammer:

def pythonByteString_to_jarray(pyString):
    return jarray.array(((x if x < 128 else (x - 256)) for x in bytearray(pyString)),'b')
2 Likes