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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:49:33+00:00 2026-06-03T06:49:33+00:00

Problem: Cyrillic, UTF-8 encoded string, for example, Михаил, specified in an HTML form, saved

  • 0

Problem: Cyrillic, UTF-8 encoded string, for example, “Михаил”, specified in an HTML form, saved by PHP into MYSQL turns to unreadable krakozyabras like “Михайлович”.

This is now a new problem, but I have found no solution so far… Please help if someone encountered this before.

HTML page is UTF-8 encoded and has properly set META; saving PHP script is UTF-8 encoded (with, or without BOM – doesn’t matter). MySL table has DEFAULT ENCODING utf-8:

CREATE TABLE `cms_deposit_request` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;

Any input welcome! 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-03T06:49:35+00:00Added an answer on June 3, 2026 at 6:49 am

    Always call

    mysql_set_charset('utf8');` 
    

    function (or a similar function from the API you are using) right after connecting to database

    if there is no such function, run

    SET NAMES utf8
    

    SQL query in the same place

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

Sidebar

Related Questions

Problem When working with MasterPages, a common irritation I run into is that script
We're using jQuery to get a JSON-string from our server (UTF-8 response, also UTF-8
I have a simple html form that submits information with POST function. But when
Help me please. I have problem with encoding response string after GET request: var
for example, I create .gsp page: <html> <head> <g:javascript> alert(Текст сообщения) </g:javascript> </head> <body>
I gave a somewhat simple problem. I have a .ttf font with Cyrillic Unicode
This is my first question... I hope my problem doesn't look stupid... html (any
All, Im having the age old problem with character encoding... I have a mySQL
I use the ruby-gem sequel to read utf-8-encoded data from a MSSQL-Server table. The
Problem: I am having trouble implementing a recursive image lazy load in all relevant

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.