T
T
TCloud2018-04-13 19:16:24
PHP
TCloud, 2018-04-13 19:16:24

How to properly set encoding in PHP?

The question is slightly incorrect, since it is necessary not to set up the encoding and fix the function. Namely, the work of the function mb_strimwidth();
Here is the result of her work:
5ad0d776b53ee416638991.png
The problem is that ridiculous symbol �.
How to remove it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sanovskiy, 2018-04-13
@Sanovskiy

The problem is that you are using substr. Try using mb_substr

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question