K
K
kyurem_bog2021-02-18 09:53:59
MySQL
kyurem_bog, 2021-02-18 09:53:59

How to fix wrong encoding between mysql and program written in Lazarus?

There was a programmer in my organization who wrote a program in the form of an electronic journal, but he died and left nothing behind. He wrote it in openSUSE. Noticing that the program can also run from under windows, I decided to transfer the database and the program, transferred it, but in the program the "text" data is displayed in the form of questions. Although in the database everything is ok. Why not leave everything as it is, if it works? The computer needs to be replaced because it is already very old and can not cope. On the first picture at the very bottom it says "LPU" because I added a line from this program, but in the database I got strange characters.
602e0e100fba6586151603.png
602e0ef6a783f186544991.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
HemulGM, 2021-02-18
@HemulGM

You need to set up a connection to the database. Specify encoding

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question