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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:52:15+00:00 2026-05-14T15:52:15+00:00

I get back a JSON response from a social networks site. There are certain

  • 0

I get back a JSON response from a social networks site. There are certain accented characters that I would like to be removed.

An example is : L\u00e1szl\u00f3 M\u00e1rton, that reads “László Márton” and I would like to be transformed into Laszlo Marton.

I would like to keep the JSON format intact, as I will send it towards.

How can I do this?

  • 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-14T15:52:15+00:00Added an answer on May 14, 2026 at 3:52 pm

    See accepted anwser to: How do I remove accents from characters in a PHP string?

    $input = "Fóø Bår";
    
    setlocale(LC_ALL, "en_US.utf8");
    $output = iconv("utf-8", "ascii//TRANSLIT", $input);
    
    print($output);
    

    if server is correctly configured (as the reference question states) this should work.

    Edit: it doesn’t.

    This will do 🙂

    $string = current(json_decode('["L\u00e1szl\u00f3 M\u00e1rton"]'));
    
    $a = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿŔŕ';
    $b = 'aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyybyRr';
    $string = utf8_decode($string);
    $string = strtr($string, utf8_decode($a), $b);
    
    echo $string; // output > Laszlo Marton
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to get a json string back from my controller, that is prefill-values
I have a Servlet that sends back a JSON Object and I would like
I'm creating an app that fetches back a Json response from a webservice. The
I'm trying to get json response from stackoverflow api with file_get_contents(), but comes back
How can I get the array data from a JSON sent back by my
So I'm getting an object back from a server that looks like this: {
I am getting json data as a response back from the server. I want
I am attempting to pull down data from a JSON response that I wrote
I am doing my best to get JSON back from the instagram API. Here
I am using jQuery to get back some JSON data from the server. 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.