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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:13:38+00:00 2026-06-11T21:13:38+00:00

Ok, I am trying to store data in a MySQL database from an Android

  • 0

Ok, I am trying to store data in a MySQL database from an Android app. I use PHP as the go between.

What I submit to the database is this (for example):
Sakè

What is stored in MySQL is:
Sakè

When I print the line back out in Android it knows to convert back to:
Sakè

The problem is, when I do certain select statements, yeah it basically doesn’t work out like it should. Is there any way I can keep this consistent?

Just a note in MySQL: I use utf8_general_ci

  • 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-11T21:13:39+00:00Added an answer on June 11, 2026 at 9:13 pm

    You need to enforce correct character for your database connection for your PHP scripts. Simplest approach would be to execute this query:

    SET NAMES 'utf8';
    

    just once, best after you connect(). If you use Zend Framework, just add this:

    resources.db.params.charset  = UTF8
    

    to your application.ini. For mysqli see set_charset(). If you use anything else, check the docs for something similar. If there’s nothing, the SET NAMES trick would always work.

    One important note though – depending on how you put your data to the DB, your database content most likely require fixing as it is corrupted by broken charset during INSERTs. So if even you do SET NAMES now, you most likely still see old data shown wrong. But that is, ironically, OK – you are now showing all fine, but data itself is broken. You just now need to fix your data (just re-insert it).

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

Sidebar

Related Questions

I'm trying to store data from a MySQL table into an PHP array variable.
i am trying to store data from the app engine app to google cloud
Here is my problem. I am trying to store data from my web app
I am trying to store the data from my sql database into an array.
I am trying to import data from a mySQL database into Microsoft SQL because
I'm trying to store data from a xml-file in a associative Array. Creating the
I'm trying to store some binary data obtained from read() in my buffer using
I am trying to develop a database to store data collected by a web
Im trying to store a list,collection of data objects in Hbase. For example ,a
I'm trying to find where the BCD (Boot Configuration Data) store is actually stored

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.