Qhov encoding ntawm cov ntawv nyob hauv cov ntaub ntawv digital hais txog txoj hauv kev uas ntu ntawm bytes mapped rau cov cim hauv ib hom lus. Muaj ntau yam sib txawv rau cov lus sib txawv. Koj tuaj yeem txiav txim siab qhov encoding ntawm cov ntawv sau siv ntau ntawm cov cuab yeej software.
Nws yog qhov tsim nyog
- - Microsoft Office Lo Lus;
- - KWrite;
- - Mozilla Firefox;
- - enca.
Cov Lus Qhia
Kauj ruam 1
Siv Microsoft Office Lo Lus, yog tias nruab rau koj lub khoos phis tawm, los txiav txim siab qhov cim ntawm cov ntawv sau. Khiav daim ntawv thov no. Hauv cov ntawv qhia zaub mov tseem ceeb, xaiv cov "Cov Ntaub Ntawv" thiab "Qhib …" cov khoom, lossis nias cov ntawv khawm shortcut Ctrl + O. Hauv cov ntawv qhib uas tshwm, mus rau cov ntawv yam xav tau thiab xaiv cov ntawv. Nyem rau "Qhib" khawm. Yog tias cov ntawv nyeem sau sib txawv ntawm CP1251, qhov "Hloov Cov Ntaub Ntawv" sib tham yuav qhib. Qhib xaiv "Lwm yam" xaiv rau hauv nws thiab xaiv qhov encoding siv daim npe nyob sab xis. Yog tias xaiv qhov tseeb tshaj yog xaiv, cov ntawv nyeem uas raug nyeem yuav raug saib nyob hauv "Daim Qauv".
Kauj ruam 2
Siv cov ntawv nyeem kho uas tso cai xaiv qhov pom ntawm cov ntawv sau tau. Ib qho piv txwv zoo ntawm cov ntawv thov no yog KWrite (sau ntawm KDE ntawm UNIX-zoo li cov tshuab). Thauj cov ntawv sau rau hauv ib lub editor. Tom qab ntawd tsuas yog hais kom nkag siab dua qhov encodings kom txog thaum nyeem tau cov lus pom (hauv KWrite, qhov no ua tiav siv ntu ntu ntawm Cov Cuab yeej Qhia).
Kauj ruam 3
Zoo ib yam li cov ntawv sau, koj tuaj yeem siv lub browser los txiav txim siab qhov encoding ntawm cov ntawv. Siv Mozilla Firefox. Khiav daim ntawv thov no. Yog tias tsis ntsia, rub tawm cov khoom tsim nyog tsim los ntawm mozilla.org thiab nruab nws. Qhib cov kab ntawv hauv koj tus browser. Txhawm rau ua qhov no, xaiv "Cov Ntaub Ntawv" thiab "Qhib cov ntawv …" cov khoom hauv cov ntawv qhia zaub mov tseem ceeb, lossis nias Ctrl + O. Yog tias cov ntawv sau yuav muab tso tawm kom raug, nthuav cov ntu "Encoding" ntawm cov "Saib" cov zaub mov thiab nrhiav qhov encoding los ntawm lub npe ntawm cov khoom uas lub cim tau teeb tsa. Txwv tsis pub, xaiv kab lus no los ntawm xaiv ntau yam khoom ntawm tib lub tshuab raj, raws li nws seem "Ntxiv".
Kauj ruam 4
Thov siv cov khoom siv tshwj xeeb los txiav txim siab qhov encoding ntawm cov ntawv sau. Ntawm UNIX-zoo li tshuab, koj tuaj yeem siv enca. Yog tias tsim nyog, nruab qhov program no siv cov tswj nqa pob muaj. Sau cov lus muaj nrog uas khiav lub lus txib:
enca - sau cov lus
Txiav txim siab qhov encoding ntawm cov ntawv sau los ntawm kev qhia nws lub npe nrog -g kev xaiv thiab cov ntawv sau nrog cov -L xaiv. Piv txwv li:
enca-Lavxias teb sab -g /home/vic/tmp/aaa.txt.