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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:36:19+00:00 2026-06-09T05:36:19+00:00

I am querying a server for some information (returned as JSON), inter alia a

  • 0

I am querying a server for some information (returned as JSON), inter alia a list of names, and one of those names returns containing weird characters:

Ðемања Матејић

This is how it should be:

Немања Матејић

I have tried the following:

  • Remove the BOM (byte-order mark) from the string (or else PHP won’t decode the JSON), then decode it using json_decode and directly take the name and insert it into my UTF8-encoded MySQL database.
  • Using a field with a UTF8 collation.

… to no avail – the value in the database still remains flawed.

How to solve this?

Edit:

Running SHOW VARIABLES LIKE '%character%' returns

character_set_client    utf8
character_set_connection    utf8
character_set_database  utf8
character_set_filesystem    binary
character_set_results   utf8
character_set_server    latin1
character_set_system    utf8
character_sets_dir  /data/mysql/fuentez/share/mysql/charsets/

Is it possibly because character_set_server is latin1?

  • 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-09T05:36:21+00:00Added an answer on June 9, 2026 at 5:36 am

    You stored the data in the database as latin1 instead of UTF-8.

    For example the string е encoded as latin1 becomes 0xd0 0xb5 which is the UTF-8 encoding of the Cyrillic letter е.

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

Sidebar

Related Questions

I'm querying against a database to retrieve some information that includes a one to
I was doing some querying today in T-SQL, SQL-Server-2008 and stumbled upon something weird
I'm querying a web server which returns a JSON string as NSData . The
I am querying the Microsoft Office SharePoint Server Search Service to write some results
I've been having trouble querying a web server for information from my Windows Phone
I am querying the Microsoft Office SharePoint Server Search Service to write some results
OK, so there is a page I'm querying on another server that returns a
I'm querying a Whois server for information on a lot of domains. Here is
I am querying a solr server for locations. Those location documents also have a
I recently experienced a performance problem in Entity Framework querying against SQL Server 2008.

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.