If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Euro symbol - JDBC on windows

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-24-03, 09:43
Gauvain Gauvain is offline
Registered User
 
Join Date: Oct 2003
Location: France
Posts: 2
Euro symbol - JDBC on windows

Hello,

I want to store a string containing the euro symbol in MySQL via JDBC on Windows 2000.
The euro symbol isn't correctly stored ('?' instead of the symbol).

I'm using :
Windows 2000 (codepage 1252)
MySQL 4.0.12 with charecter-set=latin1
JDBC mysql-connector-java-3.0.8-stable-bin
Java 1.4.2
The euro symbol is passed through a swing gui (AltGr-E on my keybord).

Thanks,
Gauvain
Reply With Quote
  #2 (permalink)  
Old 10-24-03, 10:49
Gauvain Gauvain is offline
Registered User
 
Join Date: Oct 2003
Location: France
Posts: 2
Re: Euro symbol - JDBC on windows

I find a solution outside this forum :
In the JDBC connection URL, add ?useUnicode=true&characterEncoding=windows-1252

Hope this helps,
Gauvain

Quote:
Originally posted by Gauvain
Hello,

I want to store a string containing the euro symbol in MySQL via JDBC on Windows 2000.
The euro symbol isn't correctly stored ('?' instead of the symbol).

I'm using :
Windows 2000 (codepage 1252)
MySQL 4.0.12 with charecter-set=latin1
JDBC mysql-connector-java-3.0.8-stable-bin
Java 1.4.2
The euro symbol is passed through a swing gui (AltGr-E on my keybord).

Thanks,
Gauvain
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 On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On