Following #332, the database itself is now UTF-8. However, MySQL session's terminal output still shows ? in place of non-ASCII characters. This is because MySQL itself has some character set and collation settings which are analogous to the database/table ones. Show the values by running this statement:
SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%';
That works, and UTF-8 characters now show correctly in the terminal.
However, these settings don't persist across sessions. There are ways to set these for each session, or even better permanently as a config for all sessions, but I wasn't yet able to sniff out exactly how to do that.
Following #332, the database itself is now UTF-8. However, MySQL session's terminal output still shows
?
in place of non-ASCII characters. This is because MySQL itself has some character set and collation settings which are analogous to the database/table ones. Show the values by running this statement:SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%';
and you'll get output like this:
These statements will set those variables to UTF-8:
Re-running the above
SHOW VARIABLES
command now shows:That works, and UTF-8 characters now show correctly in the terminal.
However, these settings don't persist across sessions. There are ways to set these for each session, or even better permanently as a config for all sessions, but I wasn't yet able to sniff out exactly how to do that.