What are the supported values for CHARACTER_SET

589 views
Skip to first unread message

Paralellos l::::::l

unread,
Jun 24, 2019, 11:34:44 PM6/24/19
to zxing
The only documentation I can find just says to pass a string where applicable (https://zxing.github.io/zxing/apidocs/com/google/zxing/EncodeHintType.html#CHARACTER_SET).

But what are the support character sets (and for what formats)???

Or do you just pass "utf-8" for everything. And if it's "applicable" Zxing will use it, else set the default (appropriate) character set.

Lachezar Dobrev

unread,
Jun 25, 2019, 4:45:36 AM6/25/19
to Paralellos l::::::l, zxing
ZXing uses the specified encoding to decode Strings using the
available characters sets in the JVM.
Hence the available character sets depend on the actual JVM the
library is run in.
Same goes for Android.

The list is generally too large for any reasonable quoting, but
US-ASCII, UTF-8, UTF-16*, UTF-32*, ISO-8859-*, ISO-2022-*,
windows-125?, KOI8-?, a plethora of IBM*, and some
Korean/Japanese/Chinese specific characters sets.
Also most of these have numerous aliases.

https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/lang/String.html
https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/lang/String.html#%3Cinit%3E(byte%5B%5D,java.lang.String)

https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/nio/charset/Charset.html
https://docs.oracle.com/en/java/javase/12/docs/api/java.base/java/nio/charset/Charset.html#availableCharsets()

На вт, 25.06.2019 г. в 6:34 ч. Paralellos l::::::l
<samgd...@gmail.com> написа:
>
> The only documentation I can find just says to pass a string where applicable (https://zxing.github.io/zxing/apidocs/com/google/zxing/EncodeHintType.html#CHARACTER_SET).
>
> But what are the support character sets (and for what formats)???
>
> Or do you just pass "utf-8" for everything. And if it's "applicable" Zxing will use it, else set the default (appropriate) character set.
>
> --
> You received this message because you are subscribed to the Google Groups "zxing" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to zxing+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/zxing/303e59d9-c042-4cd1-b623-0c200caa885a%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages