Muhammad Hewedy
Muhammad Hewedy

Reputation: 30058

jpos : cannot find control data "0x0D" when using isoMsg.getString(id) method

Some field value contains 0x0D specail character The value from the hexdump:

4041000000000001D0534534534112342340000

But when I get the field value using isoMsg.getString(field_id), I got an equal sign instead of the 0x0D character

4041000000000001=0534534534112342340000

Is there any method to return the value as is without changing any control character data ?

Upvotes: 0

Views: 386

Answers (2)

apr
apr

Reputation: 1343

jPOS converts the 'D' into '=' on BCD fields using ISOUtil.bcd2str method.

This is useful to deal with track2 data.

You can easily replace it back.

Upvotes: 1

John
John

Reputation: 16007

Something's not right. You're looking at this:

4041000000000001D0534534534112342340000

This is 39 characters, or 19.5 bytes. Is this your issue?

Upvotes: 0

Related Questions