A
A
Alexander2017-07-07 19:32:32
HTML
Alexander, 2017-07-07 19:32:32

In what format should the file be encoded if instead of text there are hieroglyphs?

Hello! I opened the file in ST-3, and there is such garbage:

<? session_start() ?>
<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Çàêðûòü ñåññèþ</title>
</head>
<body>
<h1>Ñåññèÿ çàêðûòà</h1>
</body>
</html>
<? session_destroy() ?>

Reopened in UTF-8 - Russian text is not displayed! In windows-1251 in the editor, everything is OK, but "porridge" in the browser!
What format is needed for this encoding?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
JaxxDexx, 2017-07-07
@storm-coder

Open in Windows-1251, convert to UTF-8 and save)))

S
Sergiu Mitu, 2017-07-07
@EaGames

In the windows-1251 editor and everything is OK, so this encoding is needed. And you are fooling the browser through<meta charset="utf-8">

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question