M
M
Minningt2015-11-02 17:01:08
PHP
Minningt, 2015-11-02 17:01:08

Why does hosting swear?

Why does the hosting swear at the charset=utf-8 value, but everything is fine on the local?

$dsn = "mysql:host=$host;dbname=$database; charset=utf-8";

When I remove charset=utf-8 on the hosting, everything works fine.
Hosting is free. Hostinger

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrew, 2015-11-02
@Minningt

We look at the PHP version on the locale and on the server + on the dock - php.net/manual/ru/ref.pdo-mysql.connection.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question