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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:14:34+00:00 2026-06-05T16:14:34+00:00

I have a text encoded from php with an ajax function with de php

  • 0

I have a text encoded from php with an ajax function with de php utf8_encode.If I print it in the console directly the text is displayed as follows :

"projects":[
    {
        "id": "1",
        "title": "CURSOS DE PERIODISME",
        "description": "Els cursos tenen l\u0092objectiu d\u0092aprofundir en l\u0092actitud period\u00edstica dels alumnes."
    }
]

When I use the jquery.parseJSON and print the text again into the description, the text is parsed as follows:

Els cursos tenen lobjectiu daprofundir en lactitud periodística dels alumnes.

All other unicode characters are well parsed, but why \u0092 is not parsed? What I’m doing wrong?

Thanks in advance!

  • 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-05T16:14:36+00:00Added an answer on June 5, 2026 at 4:14 pm

    U+0092 is a control character, perhaps it’s being parsed but you’re not seeing it because of how you’re using the string.

    For example, this code which does no JSON parsing at all:

    (function() {
    
      var strWith = "Els cursos tenen l\u0092objectiu d\u0092aprofundir";
      var strWithout = "Els cursos tenen lobjectiu daprofundir";
    
      display("With    (" + strWith.length + "): " + strWith);
      display("Without (" + strWithout.length + "): " + strWithout);
    
      function display(msg) {
        var p = document.createElement('pre');
        p.innerHTML = String(msg);
        document.body.appendChild(p);
      }
    })();
    

    Live copy | source

    Output:

    With    (40): Els cursos tenen lobjectiu daprofundir
    Without (38): Els cursos tenen lobjectiu daprofundir

    As you can see, they look the same with and without the control character, but we can see from the lengths that the control character is included in the string.

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

Sidebar

Related Questions

I have a html text. I had encoded it in php using urlencode function.
We have a complete code for getting the values from PHP through Jquery AJAX
I have a problem with sax parser and encoded text. I try to parse
I am having utf-8 encoded file containing arabic text and I have to search
I have created an AJAX function that is used with pagination links to load
I have been trying to add data from my ajax query that returns json
I have three PHP arrays that I've encoded with json... extra PHP code has
i have this code on the server side: <?php header('Content-Type: text/html; charset=utf-8'); require ../general.variables.php;
I have a problem with my JQuery, Ajax, and PHP code. I have a
I have an ajax code which passes data to php and then retrieves data

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.