Delphi. UniGUI. Знаки вопроса. Кодировка (charset) на VPS и локаль

2 дня убил на то, чтобы понять, почему на VPS, при загрузке туда приложения UniGUI и базы MySQL при Insert и Update пишутся знаки вопросов вместо русского текста.

Решение. Выставить локаль Wndows Server 2012 на русскую. А также все, что возможно выставить в UTF-8.

Что было сделано до локали?

-Все, что возможно, было выставлено в utf-8 в MySQL.

-При подключении TFDConnection, параметр UTF-8 также был добавлен.

Но обо всем по порядку. Обсуждение темы находится на официальном форуме UniGUI.

Приведу описание проблемы и ее решение

Seems to be not uniGui trouble but not sure exactly

Having UniGUI app, MySQL DataBase, FireDAC.

When trying to insert Russian symbols on local pc- everything ok.

same operation on VPS Asure, having “????????” in spite of normal text.

 

Everything the Same,

-UniGUI EXE file

-MySQL Server

-Database

 

the only difference – my computer and vps computer

 

Doing connection on client like

 

MySQL is adjusted like

 

character_set_client utf8
character_set_connection utf8
character_set_database utf8
character_set_filesystem binary
character_set_results utf8
character_set_server utf8
character_set_system utf8
character_sets_dir C:\Program Files\MySQL\MySQL Server 5.5\share\charsets\
Can’t understand that mess.
On local server everyting Ok, on vps – “???????” in spite of normal text in Russian.
Looking for advice. Thank you!
Причем в базе все выставлено на utf-8 как нужно…
42 43 44 45 46 47
А вот здесь пробовал подключаться к VPS компьютеру со своего локального. Insert записи – ок!
48

Решение

Solution found !!!

Changed Locale and Region to Russia on VPS !!! I don’t know how it works but it works.

Everybody thank you ! I think topic could be useful for others in depoy questions.

Go to ControlPanel -> Clock Language and Region and change Region and Locale

49

 

 

This entry was posted in Delphi. Bookmark the permalink.