Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

JDBC Encoding German (no replies)

$
0
0
Hello everyone,

I am using MySQL 5.6.20 with ConnectorJ 5.1.31.

Connection String: jdbc:mysql://localhost:3306/[database name]

The query

select 'FÄ' = 'FA', 'FA' = 'FA';

returns 0 und 1.

The query

select * from [table name] where old_value = 'FA';

returns a row with old_value = 'FÄ'.

The table's and server's character set is utf8.


The same query executed in MySQL Workbench returns 1 for 'FÄ' = 'FA'.

How should I configure the driver / the server to have 'FÄ' <> 'FA'?

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>