![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, I use mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2. I created database: CREATE DATABASE ogloszenia CHARACTER SET latin2 COLLATE latin2_general_ci; Then I imported database tables with data from .sql script created by another MySQL. I use latin2, Polish characters. Unfortunately, instead of Polish characters I have question marks. Please help. Thanks in advance. |
#3
| |||
| |||
|
|
Where do you see the question marks? Â* |
|
offer_type_id | offer_type_name | +---------------+-----------------+ Z | zamiana | W | wynajem | S | sprzeda? | N | najem | K | kupno | +---------------+-----------------+ |
#4
| |||
| |||
|
|
Where do you see the question marks? mysql> select * from offer_types; +---------------+-----------------+ | offer_type_id | offer_type_name | +---------------+-----------------+ | Z | zamiana | | W | wynajem | | S | sprzeda? | | N | najem | | K | kupno | +---------------+-----------------+ 5 rows in set (0.00 sec) Instead of 'sprzeda?' there should be 'sprzedaż'. |
#5
| |||
| |||
|
|
Where do you see the question marks? * mysql> select * from offer_types; +---------------+-----------------+ | offer_type_id | offer_type_name | +---------------+-----------------+ | Z | zamiana | | W | wynajem | | S | sprzeda? | | N | najem | | K | kupno | +---------------+-----------------+ 5 rows in set (0.00 sec) Instead of 'sprzeda?' there should be 'sprzeda?'. |
#6
| |||
| |||
|
|
What charset are you using to display data? * |
|
And since you're using the cli, what's the charset used for the connection? *(the same can be asked of when you store the data). |
#7
| |||
| |||
|
|
Does your terminal support Latin2? Obviously, mine doesn't... |
#8
| |||
| |||
|
|
But I have question marks instead of latin2 in a WWW browser, too. |
#9
| |||
| |||
|
|
I use mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2. I created database: CREATE DATABASE ogloszenia CHARACTER SET latin2 COLLATE latin2_general_ci; |
|
Then I imported database tables with data from .sql script created by another MySQL. I use latin2, Polish characters. |
|
Unfortunately, instead of Polish characters I have question marks. Please help. Thanks in advance. |
#10
| |||
| |||
|
|
Jivanmukta <jivanmu... (AT) poczta (DOT) onet.pl> wrote: I use mysql *Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2. I created database: CREATE DATABASE ogloszenia CHARACTER SET latin2 COLLATE latin2_general_ci; Are you aware that a character set / collation specified for a database is just a *default*? Then I *imported database tables with data from .sql script created by another MySQL. I use latin2, Polish characters. Those tables and the columns in them can use completely different encoding. SHOW CREATE TABLE ... or SHOW FULL FIELDS FROM ... will tell. Unfortunately, instead of Polish characters I have question marks. Please help. Thanks in advance. RTFM. At least this page:http://dev.mysql.com/doc/refman/5.0/...onnection.html but better the whole chapter about character set support. XL |
![]() |
| Thread Tools | |
| Display Modes | |
| |