Printing HTML file via lpr: page, not code!

Dotan Cohen dotancohen at gmail.com
Tue Dec 23 21:28:49 UTC 2008


2008/12/23 Matthew Flaschen <matthew.flaschen at gatech.edu>:
> Dotan Cohen wrote:
>> Thanks, Matthew. a2ps seems to call html2ps internally, which cannot
>> handle the unicode in the document. That is, unless I am doing it
>> wrong:
>
> Yeah, you seem to be right.  That's even documented in the man page
> ("Currently recognized values are ISO-8859-1, EUC-JP, SHIFT-JIS, and
> ISO-2022-JP (other EUC-xx encodings may also work).")  If it actually
> uses characters outside of ISO-8859-1, I don't have a solution.  Take a
> look at iconv, though.
>
>> $ html2ps calendar.html > calendar.ps
>> Returns a page with the incorrect encoding (UTF-8 as iso-8859-1).
>
> What exactly do you mean?  It misinterprets UTF-8 input as ISO-8859-1 input?
>

I get gibberish like the eighth example on this page:
http://gibberish.co.il/encoding.html
(warning: not English!)

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il

א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه‍-و-ي
А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я
а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я
ä-ö-ü-ß-Ä-Ö-Ü


More information about the kubuntu-users mailing list