Site Tools


Smart Card Solution

User Manual

JavaCard API Samples

Java Card Specification

Knowledge Sharing


5.6.4 CONSTANT_Utf8

The CONSTANT_Utf8_info structure is used to represent constant string values. UTF-8 strings are encoded in the same way as described in The Java Virtual Machine Specification (§ 4.4.7).

The CONSTANT_Utf8_info structure is:

The items of the CONSTANT_Utf8_info structure are the following:


The tag item has the value of CONSTANT_Utf8 (1).


The value of the length item gives the number of bytes in the bytes array (not the length of the resulting string). The strings in the CONSTANT_Utf8_info structure are not null-terminated.


The bytes array contains the bytes of the string. No byte may have the value (byte)0 or (byte)0xF0-(byte)0xFF.

javacard/jcvm/5.6.4_constant_utf8.txt · Last modified: 2017/05/13 04:09 (external edit)