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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T00:39:49+00:00 2026-06-08T00:39:49+00:00

I’m building a quick website that uses the "geoanems" database for places round the

  • 0

I’m building a quick website that uses the "geoanems" database for places round the world. I’m using Mysql, PHP and CodeIgniter but I’m having an issue with the UTF8 places names. I’ve imported the DB and everything is setup with UTF-8.

However, I’m running a simple test to see if I can get the names in the browser correctly, and I’m plagued by question marks all over the place. MySQL shows the correct hex for 1123230’s name and sname, but the same char "C481" is stripped in 1127766’s sname and been replaced by "3F".

What’s going on? Seeing as this is MySQL running the hex why has it changed the values?
Also if I can see it fine for one row, why not the other?

I’ve setup the server for UTF8 and ran checks on MySQL to see if that was set correctly. This doesn’t work in CodeIgniter either :(. I’ve also sent "SET NAMES ‘UTF8’",
but still no joy.

This is the SQL:

$sql = 'select geonameid,name,sname, hex( name ) ,hex( sname ) from pp_adm1 where country = "af" COLLATE utf8_general_ci';

enter image description here

Sequel Pro – Showing Correct Encoding in DB

SequelPro - Showing Correct Encoding in DB

  • 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-08T00:39:51+00:00Added an answer on June 8, 2026 at 12:39 am

    As elvispt mentioned, check the charset and dbcollat.

    The following link will be useful to convert charset of mysql (if thats the problem)

    http://www.bdunagan.com/2011/09/29/converting-mysql-from-latin1-to-utf8/

    To verify the character set and collation, you can always query the MySQL variables:

    show variables like 'collation%';
    show variables like 'character%';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
We're building an app, our first using Rails 3, and we're having to build
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I would like to count the length of a string with PHP. The string
I used javascript for loading a picture on my website depending on which small

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.