A
A
Andrew2015-09-13 10:52:40
Character encoding
Andrew, 2015-09-13 10:52:40

Page titles have question marks instead of letters. How to fix, friends?

Please help fix the error. Now the value is "AddDefaultCharset utf-8"
9d56121f2f4e4b278aa12603ea9fa9dc.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Orlov, 2015-09-13
@Traders

This problem occurs when text is truncated using functions that do not work with multibyte encodings.
Now your text is cut off like this:
$title = substr($title, 0 ,15);
but you need
$title = mb_substr($title, 0 ,15);
more details here: https://secure.php.net/manual/en/ref.mbstring.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question