Celeb Glow
updates | February 26, 2026

Can't convert iso-8859-1 to utf-8

I tried to convert the file and failed. There you can see al my actions:

david@david-ThinkPad-E480:/$ locale charmap
UTF-8
david@david-ThinkPad-E480:/$ file -bi posmotret.txt
text/plain; charset=iso-8859-1
david@david-ThinkPad-E480:/$ iconv -f iso-8859-1 -t UTF-8 posmotret.txt
ëþáèòü íåëüçÿ ðàññòàòüñÿ - 6
ñåìüÿ ïî áûñòðîìó - 6
òèì òàëëåð èëè ïðîäàííûé ñìåõ - 6
âëàñòü - 6

This is an unfamiliar language even for me :)

1

1 Answer

The file is not in iso-8859-1 but in cp1251.

$ iconv -f cp1251 -t utf8 posmotret.txt
любить нельзя расстаться - 6
семья по быстрому - 6
тим таллер или проданный смех - 6
власть - 6
3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy