charset problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Guest's Avatar

    #1

    charset problem

    I have a problem with MySQL charsets.
    In many table fields I have greek characters.

    With phpMyAdmin & MySQL Command Center I see greek characters correct.
    The same from my PHP pages.

    When I run the following command
    ------------------
    mysqldump -uroot -p my_database > out.sql
    or
    mysqldump --character-sets-dir=..\share\ch arsets -uroot -p --default-charac
    ter-set=greek my_database > out.sql
    ------------------
    I take a file out.sql with wrong characters.
    First command gives out.sql in UTF-8 format but I cannon open it correctly
    (I use MSWord and other UTF-8 readers)
    The same problem with MySQL Administrator.

    I think to programming a PHP which takes backup from my database but it is
    wested time...


  • Guest's Avatar

    #2
    Re: charset problem

    OH! NO!!!!!
    I try to correct it and finally I destruct it!
    -----------------------------
    CREATE TABLE `book` (
    ............... ............
    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
    -----------------------------
    I have the table above.
    Can I change CHARSET to greek (from latin1) without reconstruct table?

    thanks!


    Comment

    Working...