Trouble parsing € with Barcode4J MessagePatternUtil

70 views Asked by At

I'm trying to insert a € in the Message and/or Pattern for a barcode using
org.krysalis.barcode4j.tools.MessagePatternUtil
in Barcode4J, but am just getting hieroglyphics.

Does anyone know how to do this?

1

There are 1 answers

0
Dave The Dane On BEST ANSWER

Well, it seems MessagePatternUtil works on a byte-by-byte basis, so it can't handle multiple-byte characters like the € (Euro).

I've posted an improved version that can handle Unicode here:
https://github.com/DanskerDave/barcode4j/blob/master/src/main/java/org/krysalis/barcode4j/tools/MessagePatternUtil.java