>the result string will be corrupted when read

The javadoc does not guarantee the string will be "corrupted" :-/

The "default replacement string" is quite a vague definition,
so there might be an encoding where "default replacement string"
means regular ASCII question mark "?".

All in all, String->byte is way easier to reason about.

WDYT on having something like that in Maven core?

Vladimir

Reply via email to