Skip to content Skip to sidebar Skip to footer

Telugu Text Using Json

Is it possible to retrieve text written in telugu from the server for use in application. I have used the below format for Json. It is giving me error in some symbols at the logcat

Solution 1:

You need to use NTR.TTF font in the assets folder and should change the line below

BufferedReader reader = new BufferedReader(new InputStreamReader(is, "UTF-8"), 8000);

Solution 2:

JSON content uses UTF-8 as default character set (see the RFC 4627, chapter 3). You have to make sure that the server returns a response with the right encoding AND to explicitly use the UTF-8 encoding for the stream reader:

BufferedReaderr=newBufferedReader(newInputStreamReader(instream, "UTF-8"), 8000);

Post a Comment for "Telugu Text Using Json"