I have problem converting a file to PDF. I create the file with
echo ęąśćżńł > text
enscript -O text -o - | ps2pdf - out.pdf
out.pdf has an encoding problem:
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
I have had a better experience with u2ps written by Alex Suykov which produces much smaller PDF files using system Unicode fonts. This program is not in Ubuntu or Fedora; you have to compile it yourself. The usage is the same:
$ u2ps text.txt | ps2pdf - text.pdf
(Compared to u2ps, paps output is huge).