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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:49:50+00:00 2026-06-04T10:49:50+00:00

i am using ajax for data in arabic characters and everything works good ,

  • 0

i am using ajax for data in arabic characters and everything works good , i can store arabic characters to database and i can retrieve arabic characters from database and prints it to the screem and everything works good , but my problem is that when i check javascripte concole on google chrome to check the retriveing data i can’t show arabic characters , but the prints as this (this is just example and not all data)

["\u0645\u062f\u064a\u0646\u0629","\u0645\u062f\u064a\u0646\u0629 \u062a\u0627\u0631\u064a\u062e\u064a\u0651\u0629","\u0634\u062e\u0635\u064a\u0651\]

i mean like this

enter image description here

  • 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-04T10:49:51+00:00Added an answer on June 4, 2026 at 10:49 am

    When using JSON, strings are in UTF-8, and special characters are encoded as \u followed by 4 hexadecimal characters.

    In your case, if you try to decode that string — for example, with the first item of your array :

    >>> str = "\u0645\u062f\u064a\u0646\u0629";
    "مدينة"
    

    I don’t read arabic, but this looks like arabic to me 🙂

    Even if the JSON doesn’t look good, it’s not what matters : the important thing is that you get your original data back, once the JSON is decoded ; and, here, it seems you’ll do.

    To get the original, decoded, string in the browser’s console (for debugging purposes, I suppose), you should be able to use the same JS library you are using in your application (if any), or the JSON.parse() function (I just tested this in Firefox’s console, actually) :

    >>> JSON.parse('"\u0645\u062f\u064a\u0646\u0629"');
    "مدينة"
    

    Of course, you’ll have to write some code to actually output that decoded-value to the browser’s console (be it “by hand” or when getting the JSON back from your server) ; but since the browser’s console it a debugging tool it seems OK.

    By default, the console, as a debugging tool, outputs the raw JSON string it gets from the server — and, with JSON, special characters are encoded, there is nothing you can do about it (except decode the JSON string and display it yourself, if you need to)

    If you want to output the decoded string to the console each time you get a result from your server, you’ll have to call JSON.parse() each time you get a result from your server ; and then output it, probably using console.log().

    Don’t forget to remove that debugging code before distributing your application / uploading it to your production server, though.

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

Sidebar

Related Questions

I'm using ajax to retrieve some data from the backend. I get the result
Can anyone help me regarding updating data in the gridview by using AJAX? Once
My jQuery code (using ajax) request's data from a local php script (pgiproxy.php). This
I have an issue retrieving ajax data using jquery 1.3.2 / 1.4.2: It works
I'm using jquery ajax to fetch data from an asp.net webservice. I'm wondering how
We are using AJAX to send data to our database. I've added some feedback
I'm using AJAX to get data from server. The following is the php file.
I am using ajax to get data from a php file function getdata(param) {
Using AJAX to pull data from a dynamically generated XML using .NET. Using simple
I am using Datatables and filling the data using Ajax from server side. I

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.