What is the query to determine character set of the MySQL Database ? Or is there a way to determine it.
How to query special characters (non-UTF8) characters from a column ?
SELECT * FROM tableName WHERE column .....
What is the query to determine character set of the MySQL Database ? Or is there a way to determine it.
How to query special characters (non-UTF8) characters from a column ?
SELECT * FROM tableName WHERE column .....
There is already a question related to this question..
Heres a link to another question here in stackoverflow that can give you hints or tricks How to see what character set a database / table / column is in MySQL? click here
I tried a direct way with regex
which didnt work much. The other solution that i found is this:
select * from tablename
where columnname regexp(concat('[',char(128),'-',char(255),']'));
As for the character set you can use
select DEFAULT_CHARACTER_SET_NAME FROM information_schema.SCHEMATA;