Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8202621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T07:15:00+00:00 2026-06-07T07:15:00+00:00

I am having an issue here with a form being posted via Ajax. Here

  • 0

I am having an issue here with a form being posted via Ajax.

Here is my jQuery code:

    <script type="text/javascript" language="javascript" charset="utf-8">
    $(document).ready(function(){
      $("#newdata").submit(function(event) {          
        event.preventDefault();          
        $.post( "save.asp",  $("#newdata").serialize() , 
          function( data ) {  
        });           
      });
    });
    </script>

The problem is when I submit data with special characters like ® or © it saves it with an  in front of it. But if i submit without the jQuery/Ajax it doesn’t format the data with this  character. Does anyone know why I’m having this problem?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T07:15:03+00:00Added an answer on June 7, 2026 at 7:15 am

    http://jsfiddle.net/aTS67/2/

    The problem is with the .serialize() method (it is not really a problem, it should do this). As you can see from my demo above when you use the method it encodes the special characters (as it should). You have two options:

    1. Decode the url-encoded string on the server-side. You didn’t mention what technology you are using but their is likely a function that will do this for you. For PHP for instance you may use htmlspecialchars_decode("YOUR ENCODED STRING"); but there will be something similiar for all server-side languages (best option)

    2. Instead of using .serialize() you can build the string sent to the server-side manually. You can replace $("#newdata").serialize() with an object literal of key value pairs:

    {"InputId1" : $("#InputId1").val(), "InputId2" : $("#InputId2").val()}

    Edit

    Just saw the extension on your file is ASP so you are using classic asp. I am not sure what the syntax is to decode but I am sure it is easy to find.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here's an issue I'm having with the .ajaxForm() method of the jQuery Form Plugin
I am having issue with loading a html textarea via ajax, essentially the text
Here is the code. It seems to be having an issue in PHP 5.
I am having an issue with a modal form. I have a text link
I'm having an issue when I loop through form input text fields. I am
Having an issue here that I have tried everything I can think of but
I'm having an issue here, I am trying to get all the titles from
http://jsfiddle.net/fSrBv/ I'm having an issue here where in my From field I'm able to
Im having a weird issue here. Its probably just something stupid but I dont
Im having a weird issue here; The following .htaccess works but now (after changing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.