MySql data converting to UTF8

Discussion in 'MySQL' started by igordr, Jul 15, 2010.

  1. #1
    Hello my friends!

    How i can convert all data from mysql database to utf8 encoding?
    I am from Serbia, in my language there are special characters like ćžđšž... They are shown as ���� .... I tryed some scripts, ALTER TABLE and still nothing....

    Please, post reply just if you are sure how to do that...

    Thanks my friends!
    All the best!
     
    igordr, Jul 15, 2010 IP
  2. netload

    netload Member

    Messages:
    105
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    28
    #2
    alter table whould work!

    example:
    ALTER TABLE `forum` CHANGE COLUMN `text` `text` longtext CHARACTER SET 'utf8' COLLATE 'utf8_general_ci' NOT NULL;
     
    netload, Jul 17, 2010 IP
  3. igordr

    igordr Greenhorn

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #3
    Thanks for reply!
     
    igordr, Jul 18, 2010 IP