FHIR Chat · String.getBytes · hapi

Stream: hapi

Topic: String.getBytes


view this post on Zulip Grahame Grieve (Nov 12 2019 at 20:42):

@James Agnew We're having build problems that appear to be caused by me using String.getBytes(UTF-8) - on some JVMs but not others, it seems as though a BOM is inserted. I'm going through systematically replacing it's use with TextFile.stringToBytes() where i have explicit control over the BOM.

One use of this is Base64BinaryType.parse(String) ?

view this post on Zulip James Agnew (Nov 12 2019 at 21:47):

Note to anyone interested: I'm going to address this, but only post-4.1.0 (as there isn't enough time before release to write tests).

I don't think this is an issue that is likely to affect anyone, but just in case: please do realize that BOMs could potentially cause unpredictability in base64binary datatypes, if you use them.


Last updated: Apr 12 2022 at 19:14 UTC