brunobouko / eid-applet

Automatically exported from code.google.com/p/eid-applet
Other
0 stars 0 forks source link

Identity file character encoding by TlvParser #38

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Read out identity eid-applet deployed on non-utf8 default encodig environment
2. Identity containing special characters like é,ë, ...

What version of the product are you using? On what operating system?
1.0.0.GA

Please provide any additional information below.

The TlvParser class will construct a java string from the byte[] in the 
identity file but does not 
specify a CharSet, leaving the encoding depending on the environment the applet 
is run in, so 
sometimes ISO-56.. encoded strings are returned

If the TlvParser could so something like : 

fieldValue = new String(tlvValue, Charset.forName("UTF8"));

would solve the issue imo.

Best regards,
Wim.

Original issue reported on code.google.com by wim.vand...@gmail.com on 25 Mar 2010 at 1:42

GoogleCodeExporter commented 8 years ago

Original comment by frank.co...@gmail.com on 19 Apr 2010 at 12:37