dbTalk Databases Forums  

question marks instead of latin2 letters

comp.databases.mysql comp.databases.mysql


Discuss question marks instead of latin2 letters in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jivanmukta
 
Posts: n/a

Default question marks instead of latin2 letters - 11-11-2010 , 07:05 PM






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.

Reply With Quote
  #2  
Old   
Jerry Stuckle
 
Posts: n/a

Default Re: question marks instead of latin2 letters - 11-11-2010 , 07:10 PM






On 11/11/2010 8:05 PM, Jivanmukta wrote:
Quote:
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.
Where do you see the question marks? What charset are you using to
display the data?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================

Reply With Quote
  #3  
Old   
Jivanmukta
 
Posts: n/a

Default Re: question marks instead of latin2 letters - 11-11-2010 , 08:44 PM



Quote:
Where do you see the question marks? Â*
mysql> select * from offer_types;
+---------------+-----------------+
Quote:
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ż'.

Reply With Quote
  #4  
Old   
Jerry Stuckle
 
Posts: n/a

Default Re: question marks instead of latin2 letters - 11-11-2010 , 09:01 PM



On 11/11/2010 9:44 PM, Jivanmukta wrote:
Quote:
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ż'.
What about the rest of my post?

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).

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex (AT) attglobal (DOT) net
==================

Reply With Quote
  #5  
Old   
Peter H. Coffin
 
Posts: n/a

Default Re: question marks instead of latin2 letters - 11-11-2010 , 09:25 PM



On Thu, 11 Nov 2010 18:44:50 -0800 (PST), Jivanmukta wrote:
Quote:
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?'.
Does your terminal support Latin2? Obviously, mine doesn't...

--
The pluses in my current job include laughing in the face of Nobel
laureates who have just lost the only copy of their data. (Hey,
I'm still a BOFH).
-- Bob Dowling

Reply With Quote
  #6  
Old   
Jivanmukta
 
Posts: n/a

Default Re: question marks instead of latin2 letters - 11-12-2010 , 12:41 AM



Quote:
What charset are you using to display data? *
On WWW page I use ISO-8859-2. This is latin2 Polish.

Quote:
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).
I am not sure if I understand you but I used command:
mysql -u root -p --default-character-set=latin2

Reply With Quote
  #7  
Old   
Jivanmukta
 
Posts: n/a

Default Re: question marks instead of latin2 letters - 11-12-2010 , 12:47 AM



Quote:
Does your terminal support Latin2? Obviously, mine doesn't...
I don't know how to check this.
But I have question marks instead of latin2 in a WWW browser, too.

Reply With Quote
  #8  
Old   
Jivanmukta
 
Posts: n/a

Default Re: question marks instead of latin2 letters - 11-12-2010 , 01:10 AM



Quote:
But I have question marks instead of latin2 in a WWW browser, too.
I mean texts in HTML paragraphs are displayed correctly with latin2
characters. The problem concerns drop-down lists filled in with data
taken from database: there are quotation marks.

Reply With Quote
  #9  
Old   
Axel Schwenke
 
Posts: n/a

Default Re: question marks instead of latin2 letters - 11-12-2010 , 04:39 AM



Jivanmukta <jivanmukta (AT) poczta (DOT) onet.pl> wrote:

Quote:
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*?

Quote:
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.

Quote:
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

Reply With Quote
  #10  
Old   
Jivanmukta
 
Posts: n/a

Default Re: question marks instead of latin2 letters - 11-16-2010 , 12:57 AM



On Nov 12, 11:39*am, Axel Schwenke <axel.schwe... (AT) gmx (DOT) de> wrote:
Quote:
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
I recreated my database setting SET NAMES latin2 COLLATE
latin2_general_ci before, but it didn't help.

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.