Situation
I have a lot of UTF-8 characters saved in a MySQL database.
In PHP, I do this:
SELECT name FROM institutions;
The characters display correctly with no problems and no additional processing necessary within the query or within the PHP script.
In Aqua Data Studio 16.0.9 I'm having a bit of a problem displaying UTF-8 characters. Instead of Å
it displays as Ã…
, instead of é
it displays as é
and so on.
What I've tried so far are in terms of the query itself:
SELECT CONVERT(name USING utf8) FROM institutions;
SET NAMES 'utf8'; SELECT name FROM institutions;
- A combination of the solutions above.
- Changed the font of Aqua Data Studio to a font that supports UTF-8 like
Verdana
,Arial
, etc.
So far none of what I did worked.
Questions
- How do I support UTF-8 in Aqua Data Studio 16.0.9?
- Can I instead of doing the fix in the query itself, just configure Aqua Data Studio so that any other queries in the future are UTF-8 compatible?
Edit
I also tried adding ?characterEncoding=UTF-8
to the Driver Parameters
under the Server Properties
window and still I can't get it to display the characters correctly.
Make sure to have these 3 lines in your my.conf :
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8
In ADS v16 Server Properties, you can override the default connection to force utf8 by setting:
?characterEncoding=utf8