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

  • Home
  • SEARCH
  • 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 9022445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:30:43+00:00 2026-06-16T05:30:43+00:00

I am using facebook API to get data from facebook like this: $me =

  • 0

I am using facebook API to get data from facebook like this:

$me = $facebook->api('/me');
$name = utf8_decode($me['name']);

The Correct name has to be: Gábriš

Without utf8_decode, the result is: Gábriš

And if I use utf8_decode, the result is incorrect again : Gábri?

Anyone has any clue?

Thanks

  • 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-16T05:30:45+00:00Added an answer on June 16, 2026 at 5:30 am

    The Correct name has to be: Gábriš

    Without utf8_decode, the result is: Gábriš

    Then you are not using UTF-8 for your page (or wherever you are using this value) – because Facebook does return all data in UTF-8.

    And if I use utf8_decode, the result is incorrect again : Gábri?

    utf8_decode decodes to ISO-8859-1 – which does not contain some of the characters in the original name, so this is total nonsense.

    Anyone has any clue?

    What are you actually trying to achieve? What encoding are you using for your page? If it’s not UTF-8 (which in general for pages on the web it should be), try the iconv functions to transcode it to whatever encoding you are using (provided this one can represent those characters).

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

Sidebar

Related Questions

I need to get basic user data from Facebook using FB.api('/<some_id>/') . This works
I'm using getJSON to get data from the facebook pages api, and it works
I use the javascript to get some data from facebook using javascript sdk: window.fbAsyncInit
I'm using a foreach loop to get images from the graph API in facebook.
I am trying to get my status from facebook using the javascript api. I
so i continue from this question YouTube: get youtube title+ image+description like facebook `
been trying to get data from the facebook payments reports API, since they say
I am trying to parse a result (JSON) fetched from the Facebook API using
I have a Json data retrieved from facebook using graph api, now i am
I'm using the facebook JS API to get some information from users when signing

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.