How To Find Out The Site Encoding

Table of contents:

How To Find Out The Site Encoding
How To Find Out The Site Encoding

Video: How To Find Out The Site Encoding

Video: How To Find Out The Site Encoding
Video: What is URL Encoding? - URL Encode/Decode Explained - Web Development Tutorial 2024, May
Anonim

Modern web pages mostly use Unicode encoding. But some resources were created a long time ago and have not been modernized since then. In addition, even when viewing a modern site, the browser can determine the encoding incorrectly.

How to find out the site encoding
How to find out the site encoding

Instructions

Step 1

The browser may have accidentally disabled automatic encoding detection. Try turning it on. To do this, select in the menu the sub-item "View" - "Encoding" (in older versions of Opera, as well as in many other browsers) or "Page" - "Encoding" (in newer versions of Opera). Turn on the mode, which may be called "Automatic" or "Select automatically". Perhaps after that, the text on the page will immediately become readable.

Step 2

If the page does not display normally, find the correct encoding manually. To do this, go to the same menu sub-item as in the previous case, but instead of the automatic mode, select the KOI-8R encoding - on sites created before the transition to Unicode, it is most often found. If it fails, try using the same method to select the encodings CP1251, CP866, and if this does not help, try all the other standards from the "Cyrillic" category.

Step 3

The page's encoding information is usually stored in its source code, and it is from this information that the browser determines it. To read the source code of the page, select from the menu, depending on the browser, the item "View" - "Source Code" or "Page" - "Development Tools" - "Source Code". At the very beginning of the text, find the following line: meta http-equiv = "Content-Type" content = "text / html; charset = encodingname", where encodingname is the name of the encoding. Then select this encoding in the browser menu.

Step 4

Standard browser tools are powerless if a rare encoding is used, or the text has been subjected to multiple re-encoding. To decrypt it, go to the online decoder page, for example, https://www.artlebedev.ru/tools/decoder/. Place a piece of text from the page in the input field and click the "Decrypt" button. To do this, select the text with the mouse, press Ctrl + C, go to the input field and press Ctrl + V. If successful, along with the decrypted text, you will receive information about what encoding it was in.

Recommended: