Check out example codes for "mysql get character set". It will help you in understanding the concepts better.

Code Example 1

SELECT default_character_set_name FROM information_schema.SCHEMATA 
WHERE schema_name = "schemaname";

Learn ReactJs, React Native from akashmittal.com