K
K
KORISS2013-06-24 21:16:35
PHP
KORISS, 2013-06-24 21:16:35

Problems with encoding

Everything uses UTF-8, static text is saved in UTF-8

On a local server from an external MySQL, it takes the data and shows it normally, but on the VPS it gives it like this with the signs "???":

<span class="postAuthorLabel"><b>Автор: </b></span><a href="javascript:void(0)" class="postAuthorNickname">????</a>


I rummaged through all the settings of MySQL, Apache & etc - utf 8 is everywhere.

I use Denver at home, I have CentOS on the VPS.

If you need to show something: ask.
I don't understand what and where can be wrong :(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timokhin, 2013-06-24
@KORISS

SET NAMES UTF8; after connecting to the base

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question