Why is my View utf8 and how can I change it to latin1
-
12-11-2019 - |
Question
I'm having an issue where a client program needs to use a View, but it needs the results as latin1. Here's what I've got:
mysql> show global variables like 'character_set%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | latin1 |
| character_set_filesystem | binary |
| character_set_results | latin1 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
mysql> Select CHARACTER_SET_CLIENT, COLLATION_CONNECTION FROM information_schema.VIEWS v;
+----------------------+----------------------+
| CHARACTER_SET_CLIENT | COLLATION_CONNECTION |
+----------------------+----------------------+
| utf8 | utf8_general_ci |
+----------------------+----------------------+
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow