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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T08:37:24+00:00 2026-06-14T08:37:24+00:00

I know that json_encode requires UTF-8 encoding , and i’m already using that ,

  • 0

I know that json_encode requires UTF-8 encoding , and i’m already using that , but at my quest of passing php array to javascript, i can’t transfer data as it is.

I put these for test in a null template html page , between JS tags.

$arrs=array("kağıtşim","üğçöşiö");
echo 'data_labels=json_encode($arrs);';

//The result is  ; 
data_labels=["ka\u00c4\u009f\u00c4\u00b1t\u00c5\u009fim","\u00c3\u00bc\u00c4\u009f\u00c3\u00a7\u00c3\u00b6\u00c5\u009fi\u00c3\u00b6"];

There is nothing wrong as i know ;
File is UTF-8 Without BOM
charset is UTF-8
Headers set to UTF-8
Nothing to do with DB

How can i revert this json_encode conversion

  • 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-14T08:37:26+00:00Added an answer on June 14, 2026 at 8:37 am

    You do not need to revert anything. When the JavaScript parser parses those strings it automatically converts those escape sequences to proper characters.

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

Sidebar

Related Questions

Does anyone know there have any other way that (by not using json_encode and
I know that Android has a JSON parser baked in but I was wondering
I know that Phonegap has an event for back button, but it's only available
I know that this sort of question has been asked here before, but still
I know that Java have its own garbage collection, but sometimes I want to
I know that this question might have been asked like 100 times, but, believe
I know that this is really basic, but I looked everywhere and I cant
This is how I got my php array to javascript echo 'var daysofweek =
This is how I got my php array to javascript echo 'var daysofweek =
This is a problem that I come across frequently when using PHP to query

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.