How to learn coding of the website

How to learn coding of the website

On modern web pages the Unicode encoding is generally used. But some resources are created long ago and since then were never upgraded. Besides even when viewing the modern website the browser can define coding incorrectly.

Instruction

1. Perhaps, in the browser the automatic detection of coding was accidentally turned off. Try to include it. For this purpose select in the menu the subparagraph "View" - "Coding" (in old versions of Opera and also in many other browsers) or "Page" - "Coding" (in new versions of Opera). Include the mode which can carry the name "Automatically" or "Select Automatically". Perhaps, after that the text on the page will become readable at once.

2. If page display did not become normal, find the correct coding manually. For this purpose pass besides to the subparagraph of the menu, as in the previous case, but instead of the automatic mode select KOI-8R encoding - on the websites created before transition to Unicode, it meets most often. At failure try in the same way to select CP1251, CP866 encodings and if also it does not help, try all other standards from category "Cyrillics".

3. Data on page encoding are usually stored in its source code, and on the basis of these data it is defined by the browser. To read the source code of the page, select in the menu, depending on the browser, the View point - "Source code" or "Page" - "Development tools" - "Source code". At the very beginning of the text find a line of the following view: meta http-equiv= "" Content-Type"" content= "" text/HTML; charset=encodingname"", where encodingname - the name of coding. Then select this coding in the menu of the browser.

4. Standard means of the browser are powerless if the rare coding is used, or the text was subjected to repeated recoding. To decrypt it, pass to the page of the online decoder, for example, of http://www.artlebedev.ru/tools/decoder/. Place text fragment from the page in the data entry field and click "Decrypt". That to make it, select the text with a mouse, click Ctrl+C, pass into the data entry field and click Ctrl+V. In case of success together with the decrypted text you obtain information on in what coding it was.

Author: «MirrorInfo» Dream Team


Print