How to get a CardHolder Name
<p>I am trying to read a smart card and i have been able to get some data from the smart card. The issue i am facing now is how to get the CardHolder name from the smart card.</p>

<p>i have </p>

<pre><code>if(emv_is_tag_present(0x5F20) &gt;=0){
                                tagDataLength = emv_get_tag_data(0x5F20, tagData, tagData.length);
                                if(debug)Log.d(APP_TAG, "Carder "+ tagDataLength);
                                appState.trans.setuserName(StringUtil.toString(AppUtil.removeTailF(ByteUtil.bcdToAscii(tagData,0, tagDataLength))));
                            }
</code></pre>

<p>I do not really know the format to use in getting this field from the card while trying to use <strong>5F20   Cardholder Name Indicates cardholder name according to ISO 7813 Card    ans 2-26    '70' or '77'    2   26  primitive</strong> which i got from <a href="https://www.eftlab.co.uk/index.php/site-map/knowledge-base/145-emv-nfc-tags" rel="nofollow">here</a></p>

<p>This is the output i am getting 3030303030333830D160222101..but, whenever i try to convert that into a String...it gives back 00000380Ñ`"! which is not really the name of the Cardholder.</p>

<p>Reading through the document (which link is posted there), i am not sure if i am using the correct format in getting my data. cos, in the document, i have  ans 2-26. I do not really understand what it means.</p>