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 6677973
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:11:16+00:00 2026-05-26T04:11:16+00:00

I have a webform and an input if you put in Latté and POST

  • 0

I have a webform and an input if you put in Latté and POST it using JSON…

$.ajax({
    type: "POST",
    url: "http://"+document.domain+"/includes/rpc.php",
    data: {method:"add_item",item:item},    
    dataType: "json",
    timeout: 10000,
    success:......

item will be the value Latté Latté is posted and the responding JSON is Latt\u00e9 which the browser interprets as Latté. Effectively this script is a WYSIWYG editor so what you type in you get back. Anyhue if I refresh the text is pulled out of mysql and comes out as Latté?. So I am guessing that MYSQL is not the correct collation?

Some more information – the query to edit the DB is

UPDATE menu_items SET description = 'Latté' WHERE item_id = '742'

the JSON reply is

{"description":"Latt\u00e9","id":"#recordsArray_742"}

  • 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-05-26T04:11:17+00:00Added an answer on May 26, 2026 at 4:11 am

    To be precise, the collation is the way in which the strings are compared and sorted. It has a relationship with the character set, but your problem is an character set problem, not a collation problem.

    A character set is a set of symbols and encodings. A collation is a set of rules for comparing characters in a character set.

    The first thing that you’ve to know is which character set you’re using. Are you using UTF-8 or LATIN1 or others?

    After that I’d try to output the correct header from the PHP script generating the JSON string. For example for UTF-8:

    header('Content-type: application/json; charset=utf-8');
    

    This could already solve your problem, if it doesn’t we have to look deeper on how do you connect to the DB and how you manipulate your data. Let me know in case which MySQL libraries or framework are you using to connect to the db, and post the relevant source code.

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

Sidebar

Related Questions

I have an ASP.NET Webform and inside the form I have an input type
I have a simple webform that will allow unauthenticated users to input their information,
i have a web form who send post variables like: <form action=teacher.php method=post> <input
I have aps.net web form there is html input text: <input type=text class=input runat=server
I have been reading up on using webrequests and post and get methods to
I have a web form with a text input box for a url. When
I have a webform with many input, checkbox, hidden, etc... elements and I am
I'm trying to create an Ajax enabled webform, and have created a simple page.
I have written some code using jQuery to use Ajax to get data from
I have a webform and i want to detect if F5 button was pressed

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.