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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:07:05+00:00 2026-05-30T06:07:05+00:00

I have a project where users are supposed to use special characters (cyrillic like

  • 0

I have a project where users are supposed to use special characters (cyrillic like ‘Врати се на почетак’ which means return to top for example). I will have to make some special settings and I need some advice regarding the proper encoding to use for my project:

  1. mysql database – is it good to use this encoding utf8_unicode_ci or should I search to a specific one? (I did not find anything dedicated to cyrillic languages, but this review says it is ok to use this http://forums.mysql.com/read.php?103,187048,188748#msg-188748)
  2. php – will this setting mysql_query("SET NAMES 'utf8'"); be enough in php to parse correctly the mysql query response in my code?
  3. html headers – would this header <META http-equiv="content-type" content="text/html; charset=windows-1251"> suffice for the correct display and interpretation for both browsers and crowlers for my page?

Is there anything else I should be aware of in this issue?

Thank you!

  • 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-05-30T06:07:07+00:00Added an answer on May 30, 2026 at 6:07 am

    UTF-8 is the better solution for Cyrillic chars in web. But you have to change this:

    <META http-equiv="content-type" content="text/html; charset=windows-1251">
    

    to

    <META http-equiv="content-type" content="text/html; charset=utf-8">
    

    And of course the source files must be saved with urf-8 enc set.

    PS: If you are setting everything in utf8 there is no need of calling mysql_query("SET NAMES 'utf8'"); Its necessary only if you have inherited project with db in other encoding/converting old databases is sometimes nightmare/

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

Sidebar

Related Questions

We have a project (Web/PHP) where we would like users to access their files,
I have a project consisting of a windows client (approx. 150 users), a webservice
In my project (iPhone app) I have a nice webview to allow users to
We're using SQL Server 2005 in a project. The users of the system have
I have a project that uses two third party libraries, both of which make
I have a project hosted on git.debian.org (alioth) and I'd like to configure a
I have an MVC2 project that has a page on it that is supposed
Ok. I have this little bit of code that is supposed to use text
I have a project that will require merging multiple snippets of text together. There
I have a design project and I'm supposed to draw zigzags in Java, using

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.