P
P
PHP-coder2015-07-29 22:32:58
PHP
PHP-coder, 2015-07-29 22:32:58

For some reason, karkozyabs are written to the database instead of Russian words. Why?

Hello gentlemen!
I have one problem: there was a site that worked fine under Denver, but recently I transferred it to the server and problems began ... The problems are that when I want to add Russian text to the database, it is written as a karkozyab, and also, if you add text through phpmyadmin, it is recorded well, but it is displayed as questions. What to do?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Tash1moto, 2015-07-29
@Tash1moto

specify utf8-general-ci encoding in table field parameters.

R
Roman Mirilaczvili, 2015-07-30
@2ord

MySQL 5.5 Reference Manual: 10.1.4 Connection Char...

S
Sasha, 2015-08-16
@svgishe

change encodings everywhere in the database:
utf8-general-ci.
In all other respects utf8 without bom

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question