简体   繁体   中英

Trouble parsing € with Barcode4J MessagePatternUtil

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM