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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:39:18+00:00 2026-05-29T06:39:18+00:00

I have table with Persian data and utf8_general_ci collection and with php program i

  • 0

I have table with Persian data and utf8_general_ci collection and with php program i was inserted data to database.

now i have new program with python – django and want view data but all data is bad view like پست
why? and what i can do for solve this problem?

ps: when i insert new data with python, all things is correct and view correctly.

  • 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-29T06:39:18+00:00Added an answer on May 29, 2026 at 6:39 am

    If you’re running into the problem where unicode items in your Django / MySQL project are displayed as question marks, here’s the likely problem and solution, found in this django-users thread:

    The likely problem is that your MySQL encoding is set to latin1, as opposed to utf8. You can check this via:

     mysqld --verbose --help | grep character-set
    

    You’ll probably see:

    character-set-server              latin1
    

    You want this to be uft8. To modify it, edit your my.conf file ( /etc/mysql/my.conf on ubuntu ), adding the following lines to the appropriate sections:

    [client]
    ...
    default-character-set = utf8
    
    [mysqld]
    ...
    character-set-server=utf8
    collation-server=utf8_unicode_ci
    init_connect='set collation_connection = utf8_unicode_ci;'
    

    Now restart mysql:

    sudo /etc/init.d/mysql restart
    

    And alter your existing tables to use the utf8 encoding:

    mysql your_db_name
    

    alter table your_table_name convert to character set utf8;

    And that should do it.

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

Sidebar

Related Questions

i have table student,fields are student_id, student_name, year_joining ... now i want to rename
I have table with data 1/1 to 1/20 in one column. I want the
I have table rows of data in html being filled from a CGI application.
i have table structure with 3 colums (column1, column2, column3) and i want to
I have table with 3 columns A B C. I want to select *
I have table in data base name train delay, with columns train number(int), DelayTime(int),
i have a mySQL table which the data in one of its columns is
I have table with statistical data. I'm trying to count the records grouped by
I have table which has a class data and it has table rows inside
I have table cars: Id int, Model nvarchar(max), DateOfProduction (datetime). And data like: 1

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.