R
R
Roman Sergeev2017-04-12 10:30:57
PHP
Roman Sergeev, 2017-04-12 10:30:57

Output from the database. Problems with encoding. How to solve?

Created a table in the database, filled it. After filling in the table, the data in the cells looks like "??????", although the encoding is utf8 cp1250_general_ci. Tell me what is my problem? 1caf66ddeef94148a6a351d9d08571bd.jpg
Conclusion:
a109d271a28c4fe2b0b4c9584b821c58.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-04-12
@Roman777777

Good afternoon.
Bring everything to one encoding - utf-8, forget about other encodings, and you will be happy.
ps In addition, you have two different encodings in one table - cp1251 and cp1250!!! And after that you want to achieve normal data display?
No, I also understand the use of sr1251, but with what fright did you manage to insert sr1250 as well?
Convert everything to utf-8.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question