Without changing any ZXing source code, is there a way to output control codes in a barcode using ZXing on Android?
Edit: The reason that I don't want to edit source code is because I would like to use the "scan via intent" process. If I have to edit source, then I'll have to embed the entire project into my project instead.
For instance, I have a GS1-128 barcode that currently outputs text
Usually when people ask this question, they are talking about FNC codes in a format like Code 128. These don't have a printable representation in the result, although FNC1 is translated as "]C1" or ASCII 29 as per the spec. The others really don't correspond to anything in the output, so don't result in any characters.
It looks like you're asking about a "START C" code. This too really isn't part of the string encoded by the barcode. It's an internal marker that tells it to switch sets for parsing the rest of the barcode.
Raw bytes make a bit more sense for other formats where there is clearly an underlying byte representation that is then further translated. For Code 128 it will give you all the (non-control) codes found in the barcode rather than the interpreted string. This is not what you want.
For your purpose you would have to modify the code. I think this only makes sense for some artificial use case .