+ 1

How to parseInt string of UTf8 text file in java

I want to Integer.parseInt (String) string is an id number located in the beginning of each line in txt file, however when I do it with utf8 txt file, error as NotNumberFormat extension appears.

27th Feb 2017, 1:56 PM
Baurzhan Kozhaev
Baurzhan Kozhaev - avatar
1 Resposta
+ 3
String someString = "VGhpcyBpcyBhb..."; byte[] asByteArray = someString.getBytes(StandardCharSets.UTF_8); String base64EncodedByteArray = encoder.encode(asBytArray);
27th Feb 2017, 2:10 PM
Faruque Hossain
Faruque Hossain  - avatar