dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Ajax and special characters

  1. #1
    Join Date
    Jun 2008
    Posts
    2

    Ajax and special characters

    Hello!
    I'm implementig an application that needs to encode in a ajax response, special characters, like , , , /,\, >,< I have some problems to encode this special kind of characters. I'm using javascript client side, to parse the data.
    Could someone help me, please?

    thanks you

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,663
    What are the problems you are running into?

  3. #3
    Join Date
    Jun 2008
    Posts
    2

    Ajax and special characters

    Hi,
    Using firefox, I receive as output the correct structure of the XML file but without special characters, but when I use IE, the system crash on the special character, and I don't see the output.
    Could you help me?

  4. #4
    Join Date
    Jul 2008
    Posts
    2
    Which version of FireFox and what if any plugging you have installed?

  5. #5
    Join Date
    Jun 2008
    Posts
    1
    I think you are opening both IE and Firefox at a time.
    http://www.PuppyWebsite.com

    "Puppy Website - Save Time, Save Money, Get Noticed"

  6. #6
    Join Date
    Mar 2007
    Location
    Bangalore, India
    Posts
    247
    It might be the '<' and '>' that cause the problem... Or the web server might be sending content in some encoding that doesn't support all of your characters. Try and set that to UTF-8 or UTF-16.

    To send the characters '<', '>' and '&', use '&lt;', '&gt;' and '&amp;' respectively.

    If you cannot control the encoding of the web server, you could try converting the special chars to their &#xxxx; equivalent where xxxx is the unicode offset of the character. For example, &#97; when set as the innerHTML of a DIV or something will display 'a'.

Similar Threads

  1. special character issue in AJAX
    By sukuinfotech in forum AJAX
    Replies: 1
    Last Post: 01-14-2008, 08:05 PM
  2. Special characters problem.
    By peros in forum AJAX
    Replies: 2
    Last Post: 11-16-2007, 06:03 AM
  3. special character issue in AJAX
    By sukuinfotech in forum AJAX
    Replies: 0
    Last Post: 08-24-2007, 03:32 AM
  4. Ajax Animation
    By zelig in forum AJAX
    Replies: 0
    Last Post: 02-09-2007, 07:41 AM

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