The a2ps do not handle UTF-8 charset text file correctly with Russian Characters, while converting text file to PDF.
Issue
- The a2ps do not handle UTF-8 charset text file correctly with Russian Characters, while converting text file to PDF.
Here is sample text file with Russian Characters :
# file -i RusianCha.txt
10-RusianCha.txt: text/plain; charset=utf-8
# cat RusianCha.txt
Сделайте Google вашей домашней страницей
Домашняя страница – это страница,
с которой вы начинаете свой день в Интернете.
Это место, куда вы будете с удовольствием заходить
в течение дня. Именно поэтому она должна быть максимально удобной.
Выбирая в качестве домашней страницы
- To convert RusianCha.txt text file to test.pdf using following command :
# a2ps RusianCha.txt -o output.ps
# ps2pdf output.ps test.pdf
- Now when opened test.pdf via evince, the output will be something like this :
СделайÑM−^Bе Google ваÑM−^Hей домаÑM−^Hней ÑM−^AÑM−^BÑM−^@ан
иÑM−^Fей
ÐM−^TомаÑM−^HнÑM−^OÑM−^O ÑM−^AÑM−^BÑM−^@аниÑM−^Fа âM−^@M−^S ÑM−^MÑM−^Bо
ÑM−^AÑM−^BÑM−^@аниÑM−^Fа,
ÑM−^A коÑM−^BоÑM−^@ой вÑM−^K наÑM−^GинаеÑM−^Bе ÑM−^Aвой денÑ
M−^L в ÐM−^XнÑM−^BеÑM−^@неÑM−^Bе.
Ð-ÑM−^Bо меÑM−^AÑM−^Bо, кÑM−^Cда вÑM−^K бÑM−^CдеÑM−^Bе ÑM−^A ÑM−^Cд
оволÑM−^LÑM−^AÑM−^Bвием ЕаÑM−^EодиÑM−^BÑM−^L
в ÑM−^BеÑM−^Gение днÑM−^O. ÐM−^Xменно поÑM−^MÑM−^BомÑM−^C онÐ
° должна бÑM−^KÑM−^BÑM−^L макÑM−^AималÑM−^Lно ÑM−^Cдобной.
ÐM−^RÑM−^KбиÑM−^@аÑM−^O в каÑM−^GеÑM−^AÑM−^Bве домаÑM−^Hней Ñ
M−^AÑM−^BÑM−^@аниÑM−^FÑM−^K
Environment
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 5
- a2ps-4.13b-57.2.el5
- a2ps-4.14-10.1.el6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
