You are not logged in.
There is a text file encoded koi8r. In Slitaz he displayed or dots or spaces. I'm trying to change the encoding in the editor vim:
[c]:e ++enc=koi8r[/c]
The result:
[c]????? ? ????????? koi8r.
? ????? ??? ??? ??? ??????. ??, ?? ????????? ?????????.[/c]
Error message:
[c]"Text-koi8r.txt" [readonly][noeo][NOT converted][ILLEGAL BYTE in line 1] 2L, 80C[/c]
How to change the encoding of a text file in Slitaz?
Offline
Hi black dog,
Make sure you're installed glibc-locale package and try again. I can't use vim, it's too hard for me to learn it. Instead it I can propose you next method—using iconv:
Get usage of iconv:
[c]iconv --help[/c]
Get full list of supported character sets:
[c]iconv --list[/c]
Convert from KOI-8R to UTF-8 file mytext.txt:
[c]iconv -f KOI8R -t UTF8 mytext.txt[/c]
Offline
Geany also allows you to pick the encoding and file type.
Offline
Thank you.
It worked. Installed the glibc-locale.
Now works not only command [c]iconv[/c], bat also command conversion in programm vim.
The only thing I do not like - the size of the package glibc-locale - 4,3 MB. Iso-slitaz image is only 8.3 MB, but additional packages that must be established - very big.
Offline
to Trixar_za
I slitaz-4.0-base, there is no geany.
Unfortunately, small distributions tend to grow.
:):)
Offline
[ Generated in 0.041 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]