New answers tagged unicode
You should have something like: text/plain application/postscript 33 texttops in your /etc/cups/mime.convs file. So, I suppose that what needs to be done is to fix the texttops filter. Under Debian, it is /usr/lib/cups/filter/texttops, which is a shell script that uses the texttopdf filter and the pdf2ps command. You can try to replace ...
I had the same problem and following how-to helped me to fix it: http://www.bsmdevelopment.com/Reference/Tech_20130004.html It's really good. You can even choose a font for text/plain printing like FreeMono or Courier. Cheers,
I don't know if you consider HPLIP an external dependency, but here is the official driver recommendation directly from CUPS. CUPS Printer Driver: HP4650 and Here is the Package info in the Debian Repo:HPLIPS As Thushi states your system doesn't know how to rasterize the document without using a tool like paps. Installing the hplip package and ...
The same can be done with paps; #!/bin/bash #This script converts UTF-8 txt to postscript paps | lpr Sometimes you need to specify the prinqueue; #!/bin/bash # This script converts UTF-8 txt to postscript paps | lpr -P lj Paps does a much better job then cups' texttops.
Are you sure the file names are valid on the NTFS filesystem? Do you require that the file names stay the same? If not, you could remove the "strange" characters to make your live easier: There is a tool for that, detox. You can check what would get renamed without changing the filenames first: $ detox -n somedir/* And then, actually do it: $ detox ...
Basically, this may be a problem of mismatch between your locale, which is set to UTF-8, and the encoding of your Chineses character file, which may be encoded in gbk, gb2312, gb18030, or Big-5. All those encoding listed above are incompatible with UTF-8. Now, let's assume gbk is the encoding of your file. So when you try to show the contents of the file, ...
$ printf "co\u00ebfficient\n" coëfficient Or if you want to do the substitution on a stream: perl -CS -pe 's/\\u(....)/chr hex $1/eg'
Top 50 recent answers are included