S
S
slowkazak2015-04-06 23:39:12
MySQL
slowkazak, 2015-04-06 23:39:12

How to specify the correct encoding for SQL in Rad Studio XE7?

Good afternoon! Two components from DbExpress are used: SqlQuery and SQLConnection
When selecting from a table, Russian letters are displayed incorrectly. It is clear that something is wrong with the encoding when transferring data. Everything in the database is stored in UTF-8. How to force to give results of request in the necessary coding?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lofem, 2016-09-09
@slowkazak

If you are sure that this is the problem then try AnsiToUtf8 and Utf8ToAnsi.
But in general in XE the String type already implies UTFString. So maybe that's not the problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question