special character issue in AJAX


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: special character issue in AJAX

  1. #1
    Join Date
    Aug 2007
    Posts
    2

    special character issue in AJAX

    Hi,
    iam faceing some special character issue in ajax call.
    iam are trying to return some special character (,,,,,,,,,,,,, ) from the servlet.
    before returning the string iam encoding the string to UTF-8 foramt.(i tried encoding with IS0-8859-1, which not even allows the xml to be load in javascript).
    but when i receive the responods string in javascript the spacial characters gettnig colabsed.(some character getting converted to '?' symbol)

    can someone tell us is ther any work around for this??

    Thanks in advance

    regards
    Sukumar

  2. #2
    Join Date
    Jan 2008
    Posts
    1
    If you're using ASP, include the following in your result ASP page:

    <% Response.AddHeader "Content-Type", "text/html;CHARSET=iso-8859-1" %>

Similar Threads

  1. New forum + some AJAX links
    By Lori in forum AJAX
    Replies: 0
    Last Post: 02-09-2006, 02:26 PM
  2. Generate Special character
    By daina in forum Java
    Replies: 6
    Last Post: 10-20-2005, 11:28 AM
  3. Replies: 0
    Last Post: 02-28-2003, 12:10 PM
  4. Replies: 0
    Last Post: 02-26-2003, 10:30 PM
  5. XML - Special character handling
    By Pari in forum XML
    Replies: 0
    Last Post: 10-18-2001, 08:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center