Menu

#31 Error reading Chinese MP3 Tag (2)

open
nobody
None
5
2003-05-05
2003-05-05
No

2) Java knows how to encode characters when new
String() is called, so ENC_TYPE[encType] is not
needed.

private String getDecodedString(byte[] b, int eIndex, int
offset)

throws java.io.UnsupportedEncodingException {

String str = new String();

int encType = (int) b[eIndex];

if ((encType >= 0) && (encType <
ENC_TYPES.length)) {

str = new String(b, offset, b.length - offset);

// ENC_TYPES[encType]);

// "Big5");

System.out.println(str);

}

return str;

}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.