Unwanted characters instead of arabic characters
I am using a webservice in myproject.I wrote a webservice client method, when I call this method I get the json object which has the data. Then I extract that object in jsp and using it to display. the problem is: I need to display some arabic characters here which I am getting from json object.when I send it to browser it is displaying صÙ?Ù?دÙ?Ù?Ø© سÙ?Ù?د Ù?Ù?Ù?Ù?Ù?أرب like characters instead of arabic characters.
JSON Oject:
"results": [
{
"attributes": {
"OBJECTID": "35",
"FACILITYTYPE": "Pharmacy",
"FACILITYSUBTYPE": "24 Hr Pharmacy",
"COMMERCIALNAME_E": "SADD MAARAB PHARMACY",
"COMMERCIALNAME_A": "??????? ???? ????????",
"TELEPHONE": "5832625",
"FAX": "5833266",
},
"geometryType": "esriGeometryPoint",
},
{
"attributes": {
"OBJECTID": "1",
"FACILITYTYPE": "Pharmacy",
"FACILITYSUBTYPE": "24 Hr Pharmacy",
"COMMERCIALNAME_E": "GAYATHY HOSPITAL PHARMACY",
"COMMERCIALNAME_A": "????? ?????? ?????",
"TELEPHONE": "28741666",
"FAX": "28742008",
},
"geometryType": "esriGeometryPoint",
}
]}
displaying data in jsp:
<% for (Object object : results) {
JSONObject jobj = (JSONObject)object;
if ( jobj != null && jobj.containsKey( "attributes" ) )
{
JSONObject att= (JSONObject) jobj.get("attributes");
%>
<%= att.get("COMMERCIALNAME_E") %>
<%= att.get("COMMERCIALNAME_A") %>
<%= att.get("TELEPHONE") %>
<%= att.get("FAX") %>
<%}} %>
When I run this JSP, I am getting unwanted characters instead of Arabic characters. Where I did wrong?
View Answers
Related Tutorials/Questions & Answers:
Unwanted characters instead of arabic charactersUnwanted characters instead of
arabic characters I am using...
unwanted characters instead of
Arabic characters. Where I did wrong... صÙ?Ù?دÙ?Ù?Ø© سÙ?Ù?د Ù?Ù?Ù?Ù?Ù?أرب like
characters instead of
arabic Stripping of unwanted characters from stringStripping of
unwanted characters from string how to strip off
unwanted characters from a string
Hi Friend,
Try this:
public class StripCharacters {
public String strip(String s) {
String st
Advertisements
Java charactersJava characters How many bits are used to represent Unicode, ASCII, UTF-16, and UTF-8
characters writing characterswriting characters how to write a group of
characters to a string ...
i mean for writing single character using charAt in java
ModuleNotFoundError: No module named 'characters'ModuleNotFoundError: No module named '
characters' Hi,
My Python... '
characters'
How to remove the ModuleNotFoundError: No module named '
characters' error?
Thanks
Hi,
In your python environment you
remove special characters iphoneremove special
characters iphone remove special
characters iphone
Remove special
characters iphone from Password
NSString *outputString = [passwordString stringByReplacingOccurrencesOfString:@"%" withString
Count number of characters in a column.Count number of
characters in a column. I just need you suggestions. Am from Biology Back ground. I just need to find out number of
characters... to count
characters in 1st, 2nd, 3rd columns seperatly and also print flase if i
replace special characters in htmlreplace special
characters in html How can i replace the special
characters in HTML?
Special Character in HTML
HTML has a long list of special
characters symbol that can be used anywhere throughout the HTML Code
Removing characters from a stringRemoving
characters from a string Removing
characters from a string
Example:
public class CharReplace{
public static void main(String []args){
String str="Hello 123.you are At 3456";
String
Uppercase Characters in JavaUppercase
Characters in Java I want to know how to UpperCase
Characters in Title useing a java code...?
Use toUpperCase() method to convert the string in uppercase letters.
class UppercaseString
{
public static
Limiting characters - JSP-ServletLimiting characters Iam doing a jsp project. In this i have a text area which should accept not more than 300
characters. I solved this with backspace and delete keys. But, i cannot solve problem of pasting through shortcut ctrl
characters java - Java Beginnerscharacters java HELLO MAM AND SIR I ASK YOUR HELP HOPE YOU GONNA....(REmember that the alphabet contains 52
characters if you count uppercase... you input that word)
The word howdy has 5
characters.
What letter would you
Iterating the Characters of a StringIterating the
Characters of a String
This section illustrates you how to iterate the
characters of a string.
For bi-directional iteration over the text , you... this interface
for the string. In CharacterIterator,
characters are indexed
How to avoid the Special characters? - JDBCHow to avoid the Special
characters? I have a form in jsp... can I override special
characters by submitting a form through JAVA...,
hi friend,
To avoid special
characters we have imposed some
Escaping Special Characters in a Pattern
Escaping Special
Characters in a Pattern
...
characters from the given string or text. Here, you can learn the way of
detecting all special
characters present in the given string.
Program Result:ADS
How to Remove Repeated Characters from the String?How to Remove Repeated
Characters from the String? Hi,
I trying to develop an application which will remove the repeated
characters from... the example of how to remove repeated
characters from the string.
Please visit
Remove duplicate characters from the stringRemove duplicate
characters from the string
In this tutorial, you will learn how to remove duplicate
characters from the
string.
Java has provide several methods to examine the content of string, finding
characters or substrings
Remove Repeated Characters from the StringRemove Repeated
Characters from the String
In this we are going to remove repeated
characters from the string. For this, we
have allowed the user to enter...}(?:(?=\\1).))"
method that have removed all the repeated
characters.
Here
Count characters from text file in JavaCount
characters from text file in Java At the "Count chracters fro mtext file in Java". I tried to run the code, but the error at the line have the directory of the text file ("C:\text.txt").
I use Eclipse to run this code. I
Java count characters from fileJava count
characters from file
In this section, you will learn how to count
characters from the file.
Description of code:
Firstly, we have used FileReader and BufferedReader class to read the file 'data.txt'
and stored the data
HOW WRITE GREEK CHARACTERS INTO MYSQL BY JSP ?HOW WRITE GREEK
CHARACTERS INTO MYSQL BY JSP ? HALLOW TO ALL !
I'M USING MYSQL5.5 , TOMCAT7 & JSP.
IN MY BROWSER I'M SEEING GREEK CHARS BECAUSE OF UTF-8 ENCODING .
WHEN I RETRIEVE DATA FROM DATABASE BY SELECT * FROM
Repeat word as many times as it has charactersRepeat word as many times as it has
characters in Java
This section illustrates you the repetition of same word as many times as it
has
characters in it. To do this, we prompt the user to enter the word using the
Scanner class. After
Password Field in HTML;
When users type
characters in a password field, the browser displays
asterisks or bullets
instead of the
characters. Password text field is same... by the user,
Instead
of showing number and character, it shows dots and asterisks
instead of extendinstead of extend Hi,
I want answer this question.
Ouestion:
Instead of extends keyword,is there any keyword available in java?
Regards
krishna
instead of extendinstead of extend Hi,
I want answer this question.
Ouestion:
Instead of extends keyword,is there any keyword available in java?
Regards
krishna