Utf8 Import problem

This is a discussion on Utf8 Import problem within the MySQL Database forums, part of the Database Forums category; I use MySQL database with utf8 character set and utf8_czech_ci collation. It works well on Linux server but when I ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-30-2006
Pythoni
 
Posts: n/a
Default Utf8 Import problem

I use MySQL database with utf8 character set and utf8_czech_ci
collation.
It works well on Linux server but when I try to
export the data and import into the same database but running on XP
machine the utf8 is
gone.Instead of a proper coding there are some strange characters.

I used
mysqldump --default-character-set=utf8 mimi >/home/Result.sql
to export data to /home/Result.sql file on Linux machine.
Then I downloaded the file to my XP and here I used
mysql --default-character-set=utf8 mimi < Result.sql
to import data.
Is it correct?

Here are MySQL variable settings


LINUX MySQL settings
+--------------------------+----------------------------+
| Variable_name |
Value |
+--------------------------+----------------------------+
| character_set_client |
latin1 |
| character_set_connection |
latin1 |
| character_set_database |
utf8 |
| character_set_results |
latin1 |
| character_set_server |
latin1 |
| character_set_system |
utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |

| collation_connection | latin1_swedish_ci |
| collation_database | utf8_czech_ci |
| collation_server | latin1_swedish_ci |



XP Windows MySQL settings
+--------------------------+----------------------------------------------
------

| Variable_name | Value

+--------------------------+----------------------------------------------
------

| character_set_client | latin1

| character_set_connection | latin1

| character_set_database | latin1

| character_set_filesystem | binary

| character_set_results | latin1

| character_set_server | utf8

| character_set_system | utf8

| character_sets_dir | C:\Program Files\MySQL\MySQL Server
5.0\share\charsets\
+--------------------------+----------------------------------------------
------
| collation_connection | latin1_swedish_ci |
| collation_database | latin1_swedish_ci |
| collation_server | utf8_czech_ci |
+----------------------+-------------------+


Any help would appreciated.
L.

Reply With Quote
  #2 (permalink)  
Old 10-30-2006
Daz
 
Posts: n/a
Default Re: Utf8 Import problem


Pythoni wrote:
> I use MySQL database with utf8 character set and utf8_czech_ci
> collation.
> It works well on Linux server but when I try to
> export the data and import into the same database but running on XP
> machine the utf8 is
> gone.Instead of a proper coding there are some strange characters.
>
> I used
> mysqldump --default-character-set=utf8 mimi >/home/Result.sql
> to export data to /home/Result.sql file on Linux machine.
> Then I downloaded the file to my XP and here I used
> mysql --default-character-set=utf8 mimi < Result.sql
> to import data.
> Is it correct?
>
> Here are MySQL variable settings
>
>
> LINUX MySQL settings
> +--------------------------+----------------------------+
> | Variable_name |
> Value |
> +--------------------------+----------------------------+
> | character_set_client |
> latin1 |
> | character_set_connection |
> latin1 |
> | character_set_database |
> utf8 |
> | character_set_results |
> latin1 |
> | character_set_server |
> latin1 |
> | character_set_system |
> utf8 |
> | character_sets_dir | /usr/share/mysql/charsets/ |
>
> | collation_connection | latin1_swedish_ci |
> | collation_database | utf8_czech_ci |
> | collation_server | latin1_swedish_ci |
>
>
>
> XP Windows MySQL settings
> +--------------------------+----------------------------------------------
> ------
>
> | Variable_name | Value
>
> +--------------------------+----------------------------------------------
> ------
>
> | character_set_client | latin1
>
> | character_set_connection | latin1
>
> | character_set_database | latin1
>
> | character_set_filesystem | binary
>
> | character_set_results | latin1
>
> | character_set_server | utf8
>
> | character_set_system | utf8
>
> | character_sets_dir | C:\Program Files\MySQL\MySQL Server
> 5.0\share\charsets\
> +--------------------------+----------------------------------------------
> ------
> | collation_connection | latin1_swedish_ci |
> | collation_database | latin1_swedish_ci |
> | collation_server | utf8_czech_ci |
> +----------------------+-------------------+
>
>
> Any help would appreciated.
> L.


I have no idea what's causing your problem, and would only assume that
Window does not support these characters (which is most unlikely). You
may wish to consider using utf8-general-ci instead?

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0