Tag Info

New answers tagged

2

The file is encoded in ISO-8859-1, not in UTF-8: $ hd 0606461.txt | grep -B1 '^0002c520' 0002c510 64 75 6d 20 66 65 72 69 65 6e 74 20 72 75 69 6e |dum ferient ruin| 0002c520 e6 0d 0a 2d 2d 48 6f 72 61 63 65 2e 0d 0a 0d 0a |...--Horace.....| And the byte "e6" alone is not a valid UTF-8 sequence. So, use iconv -f latin1 -t ascii//TRANSLIT file.


2

The file you linked appears to be UTF-8 inside an HTML document $ file 0606461.txt 0606461.txt: HTML document, ASCII text, with CRLF line terminators If you run it through an HTML-to-text converter first, e.g. iconv -f UTF-8 -t ascii//TRANSLIT < <(html2text 0606461.txt) then the UTF-8 fragment you appear to be having trouble with appears to ...


3

vinc17 is correct: The glyph ☠, also called SKULL AND CROSSBONES, is not supported by Liberation Mono font as you can see here and here. You have to change to a font that covers this unicode (range). Fonts that support this particular glyph ☠ are listed here. To find the name and various other information of a unicode character by text, use this tool.


5

The Liberation font doesn't seem to have this symbol. But using XTerm*faceName: DejaVu Sans Mono (which is also a truetype font) allows ☠ to be displayed. EDIT: Do not use LibreOffice or OpenOffice to determine whether a glyph is supported in a font, as it silently falls back to another font: OpenOffice bug 45128.



Top 50 recent answers are included