Question : Reponse XML parsing error in Javascript

When I give alert(res.responseText) it shows this

My response XML is

sult val="t">ob_location>cation>b_id>4512</job_id>mployment_type>Permanentoyment_type>r_id>Job-144er_id>_owner>Sangaran Kannan_contact_id>t_contact_id>t_name>ontact_name>1472>r_id>62ob_owner_id><job_title>Sangaran éNew Job 2003-2008status>Open - Accepting Submittalsow>ob_location>cation>b_id>4512</job_id>mployment_type>Permanentoyment_type>r_id>Job-144er_id>_owner>Sangaran Kannan_contact_id>t_contact_id>t_name>ontact_name>1472>r_id>62ob_owner_id><job_title>Sangaran èNew Job 2003-2008status>Open - Accepting Submittalsow>>sult>


In the Job title it has "Sangaran éNew Job 2003-2008" the special character is converted into UNICODE format to repsent in Javascript but even when i parse to get the values in job-title tag it shows job-title tag as NULL

Please let me where is the issue. I have set the DB encoding style as UTF-8 and my JSP rendering as UTF-8

Thanks in advacne.

Answer : Reponse XML parsing error in Javascript

Those are NOT "standard" xml entities. Instead of:
à ©

use their numeric equivalents:
à and ©

(NOTE: I removed the ending semicolon because this site will not display the code otherwise.

Random Solutions  
 
programming4us programming4us