• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

simple problem Convert latin1 to UTF-8 in MySQL

 
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi guys , I have created Latin database called arabicUser with no values, then I converted to utf8 using this command below in order to insert Arabic letters:
here is my table arabicUser:
create table arabicUser(
userID int not null auto_increment,
name varchar(20),
university varchar(20),
profession varchar(20),
primary key(userID)
);
I converted it using ALTER TABLE arabicUser CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;

now it is like this:
Create Table: CREATE TABLE `arabicuser` (
`userID` int(11) NOT NULL auto_increment
`name` varchar(20) default NULL,
`university` varchar(20) default NULL,
`profession` varchar(20) default NULL,
PRIMARY KEY (`userID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

does it mean I can now insert Arabic characters into table , I have tried this below:

insert into arabicUser(name, university, profession)
values("???","???","???");< br/>
but it shows not correct characters something not understood, why is that , and if I put
select * from arabicuser;
it shows also the not clear characters .

please tell me where I am wrong what step I miss to insert Arabic characters .
 
Live a little! The night is young! And we have umbrellas in our drinks! This umbrella has a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic