Solved

Character set has been locked to Latin1  Latin1_swedish_ci ?

Posted on 2007-12-04
3
849 Views
Last Modified: 2008-02-01
Hello all,

I have created several db with character set of utf8 for multilanguage
support,but from yesterday that i creat a new db ,i set character set
in Mysql Administrator to utf8 and utf8_general_ci but when i want
type persian i receive error 1366 ,when i see table options in Mysql

Administrator it is ok and is on utf8, but i try change the "NOT NULL"
and that in the box of Execute there is this message:

ALTER TABLE `testi`.`tbtest` MODIFY COLUMN `title` VARCHAR(45) CHARACTER SET

latin1 COLLATE latin1_swedish_ci;

so it seems that character set is locked to above (SWedish),is there any
solution?
Thanks
0
Comment
Question by:MOSTAGHASSI
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
michofreiha earned 125 total points
ID: 20402380

Well query browser has issues when concatenating queries together with static strings because of weird bug I am still working with the devs on, the workaround is to look at your static portions of the query and run a convert on them to make them UTF8 explicitly.

Please check the following:
http://dev.mysql.com/doc/refman/5.0/en/charset-server.html
http://dev.mysql.com/doc/refman/5.0/en/charset.html
0
 

Author Comment

by:MOSTAGHASSI
ID: 20402553
Thanks for your comment.
I read the articles and for creating new db i used comand line as:
CREATE DATABASE db_name CHARACTER SET utf8 COLLATE utf8_general_ci;
and it is good,now can you guide that how can apply this to an existance db?


0
 
LVL 9

Expert Comment

by:michofreiha
ID: 20402718
0

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

Suggested Solutions

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Creating and Managing Databases with phpMyAdmin in cPanel.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now