Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Barcode 128 and control-characters

ZwenAusZwota
Level 1
Level 1

Hallo there,

since the adobe support could not help I have to ask here.

We use the barcode 128 to print a 38 char string. Because of the length of the string we decided to use subtypes 128C for the numeric parts und 128B for the alphanumeric part.

The string is build as follow: numeric(12)alphanumeric(10)numeric(16).

To realize this we use control-characters:


[SC] - Start with 128C
[CB] - Change to 128B
[CC] - Change to 128C

But there is a problem: the alphanumeric part is encoded in lower case instead upper case.

The string is 000000311387[CB]TESTTALT  [CC]0001000000025000

the text under the barcode is 000000311387TESTTALT  0001000000025000

the barcode is 000000311387testalt@@0001000000025000

As you can see, the ascii is encoded in the wrong way .

Is there another control-character to swich to upper case, or what else can we do?

---Edit---

I've found something really crazy!

if I want encode a "T" after a 128C sequence, I have to do the following in Javascript:

var chr = 'T';
var i = chr.charCodeAt(chr);
i-=32;
this.rawValue = "[SC]"+"87"+"[CB]"+i+"EST  "+"[CC]"+"25";

We are using a 128C-barcode.

text under the Barcode is 8752est25, but in the barcode it is 87Test25.

Is this a bug?

Value of T is in Livecycle Designer 52. In ASCII it is 84, difference 32.

How can we solve this?

Greetz,

Sven

Message was edited by: ZwenAusZwota

0 Replies
Neal_G__Davies
Level 1
Level 1

I did some investigating and received the following answer - I hope it helps

BTW - What was your original support ID for this issue?

From looking at the original message, the customer is  using the barcode correctly but it looks like there’s a bug that encodes Code 128 B upper-case characters in lower-case. 
Subset B allows both upper and lower case alphabetic characters, so it should be encoding the upper-case characters as upper-case.

The only workaround I can think of that might work if they aren’t using any lower-case letters is to switch to Code 128 Subset A instead of Subset B.  Subset A supports upper-case only. 
So in their data change [CB] to [CA].

Scroll down to the section entitled ‘Encoding non-printing characters in barcode data’ here for more info: http://help.adobe.com/en_US/livecycle/9.0/designerHelp/000315.html