Answer the question
In order to leave comments, you need to log in
PHP - how to solve encoding problem?
Hi, I'm editing the file in notpad in UTF-8 encoding without BOM
PHP code
var_dump(mb_detect_encoding( '/data-alt-lite/'));
var_dump(mb_detect_encoding(iconv('cp1251', 'UTF-8', '/data-alt-lite/')));
string 'ASCII' (length=5)
string 'ASCII' (length=5)
Answer the question
In order to leave comments, you need to log in
var_dump(mb_detect_encoding( '/data-alt-lite/','UTF-8'));
var_dump(mb_detect_encoding(iconv('cp1251', 'UTF-8', '/data-alt-lite/'),'UTF-8'));
var_dump(mb_detect_encoding( 'Русские буквы'));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question