W
W
webcoder12019-12-31 20:38:44
Character encoding
webcoder1, 2019-12-31 20:38:44

Why might Sublime Text 3 not display UTF-8 encoding?

Actually, he said everything.
+ UTF-8 encoding bom is normally displayed, but I need it without BOM because bom prevents php scripts from working stably.
PS Notepad++ UTF-8 normally displays, back, utf-8 bom it can't.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
webkoder1, 2019-01-01
@webcoder1

RESOLVED!
setlocale(LC_ALL, 'ru_RU.utf8');
Header("Content-Type: text/html;charset=UTF-8");
That's what had to be substituted into the PHP code in order to solve the problem with a broken encoding. Now UTF-8 without BOM displays normally.
PS Anyway, thanks to everyone who replied!

L
lukoie, 2019-12-31
@lukoie

Maybe because it's not UTF8, but for example UTF16?
And what does it look like that it cannot display?
Where are you getting the files from?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question