java - Cast JSONObject to JSONArray. Problems with UTF8 characters -


i'm trying cast jsonobject jsonarray. jsonobject contains object of type jsonarray. array sequence of strings. 1 of strings in sequence formatted following.

"uid=\u00d1\u0088\u00d1\u0084\u00d1\u0088" 

after doing cast of jsonobject array characters in array change.

"uid=???" t 

after cast jsonarray original double byte characters in above \u format change incorrect display characters in java program. ideas? has seen problem? have done searching have not come answers problem.

the code below what't used this.

public static string[] read(jsonobject input) {      com.ibm.teps.json.any.asserttypecode(input, _type);       jsonarray val = (jsonarray)input.get(fw_properties.tepsrest_type_ext_val);         string [] result = new string[val.size()];       for(int = 0;i<result.length;i++)      {         result[i] = (string)val.get(i);      }       return result;   } 


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

java - SmsManager sending message more than one -