I am trying to test my configuration and see weird characters after unpacking a packed message. Could someone help understand what is happening.
I have configured packager as below,
<isofieldpackager
id="10"
name="10"
length="20"
class="org.jpos.iso.IFE_NUMERIC"
pad="false"
packager="org.jpos.iso.packager.GenericSubFieldPackager"
emitBitmap="false">
<isofield
id="1"
name="10.1"
length="4"
class="org.jpos.iso.IFE_NUMERIC"
pad="false"/>
<isofield
id="2"
name="10.2"
length="6"
class="org.jpos.iso.IFE_NUMERIC"
pad="false"/>
<isofield
id="3"
name="10.3"
length="10"
class="org.jpos.iso.IFE_NUMERIC"
pad="false"/>
</isofieldpackager>
My test code,
packIsoMsg.set("10.1", "0100");
packIsoMsg.set("10.2", "112233");
packIsoMsg.set("10.3", "0218112233");
When i pack and print
<isomsg id="10">
<field id="1" value="0100"/>
<field id="2" value="112233"/>
<field id="3" value="0218112233"/>
</isomsg>
When i unpack and print
<isomsg id="10">
<!-- org.jpos.iso.packager.GenericSubFieldPackager -->
<field id="1" value="C¬C£"/>
<field id="2" value="C¬C¬C£"/>
<field id="3" value="C£C¥C¥C·C·"/>
</isomsg>
unpackIsoMsg.getString("10.1") => "C¬C£"