I'm working on a program migration from mssql to mysql. This program was using an aliases in russian. Here is the example:
>> Select person.lastname as 'Фамилия', person.firstname as 'Имя'...
It allows to skip the manual column naming for datagrids which is pretty handy. However, when the same command is passed to MySQL is returns a column names in UTF-8, re-encoded to the default encoding of my database - cp1251. For example, 'Фамилия' is returned as 'Фамилия'.
Are there anything i could change in MySQL settings to make it working right?
>> Select person.lastname as 'Фамилия', person.firstname as 'Имя'...
It allows to skip the manual column naming for datagrids which is pretty handy. However, when the same command is passed to MySQL is returns a column names in UTF-8, re-encoded to the default encoding of my database - cp1251. For example, 'Фамилия' is returned as 'Фамилия'.
Are there anything i could change in MySQL settings to make it working right?