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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T03:04:48+00:00 2026-06-17T03:04:48+00:00

Here’s a sample string, stored in a MySQL database, running on a Linux server:

  • 0

Here’s a sample string, stored in a MySQL database, running on a Linux server: ™

That’s the single TM character, which is represented as 0x2122 in UTF-16BE, or 0xE284A2 in UTF-8

The database table is encoded in utf8-unicode-ci. I’m running PHP on another Linux server, which uses an internal encoded (as reported by mb_internal_encoding) of ISO-8859-1, which uses the same encoding for the character as UTF-8.

When I run a SQL query to get the string, it returns 0x0099, which is its representation in Windows-1252.

How would that even happen, and how can I fix it to return in a more sensible codepage?

  • 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-17T03:04:49+00:00Added an answer on June 17, 2026 at 3:04 am

    The behavior you observe is due to the default MySQL client characterset.

    You can override the default, and specify the characterset that is to be used for the client connection. If you are using mysqli, then do this:

    $mysqli->set_charset('utf8');
    

    see:

    http://php.net/manual/en/mysqlinfo.concepts.charset.php

    http://dev.mysql.com/doc/refman/5.5/en/charset-connection.html

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

Sidebar

Related Questions

Here's a sample of a SpinBox that writes its changes to underlying variables. The
Here is my scenario. I have a website running under AppPool1 and that works
Here's some sample HTML <style> .icon {display:none;} </style> <ul> <li>ABC <i id=abc class=icon>x</i></li> <li>DEF
Here is my AsyncTask. Getting exception in the AsyncTask.. private class GetCategories extends AsyncTask<String,
Here's the setup - I have a view that lists products. On that same
Here is a scenario: User installs .NET application that you have made. After some
Here is the code in which i am having the problem- <!DOCTYPE html> <html>
Here is my code for the POST request to the server. The JSON to
Here is my situation: I am making a countdown app which works fine but
Here are the tables I have: Table A which has entries with item and

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.