if I lpr a text file the open single quotes three characters:
Capital greek gamma ; uppercase C with a cedilla ; lowercase y with an umlaut
Close singe quotes are :
Capital greek gamma ; uppercase C with a cedilla ; uppercase O with an umluat.
Open double quotes are:
capital greek gamma; uppercase C with a cedilla ; english sterling sign
Close double quotes are:
capital greek gamma; uppercase C with a cedilla ; yen sign
less shows the text correctly. I'm on fc4.
sean
At 2:13 PM -0400 10/2/05, sean wrote:
if I lpr a text file the open single quotes three characters:
Capital greek gamma ; uppercase C with a cedilla ; lowercase y with an umlaut
Close singe quotes are :
Capital greek gamma ; uppercase C with a cedilla ; uppercase O with an umluat.
Open double quotes are:
capital greek gamma; uppercase C with a cedilla ; english sterling sign
Close double quotes are:
capital greek gamma; uppercase C with a cedilla ; yen sign
less shows the text correctly. I'm on fc4.
sean
You have some sort of mismatch with the charset (usually language settings). The text file is in Unicode UTF-8, which less is expecting, while lpr or the printer is using some old 8-bit codepage (Microsoft calls it OEM 437). Try to get lpr or the printer onto the same page, accepting UTF-8. Check man lpr and the CUPS documentation it links to; possibly /etc/cups/cupsd.conf has a DefaultCharset set away from the default "utf-8". Or maybe it's some other part of CUPS.
Also, whatever made the text file has "smartened" the quotes; being a computer and having no smarts at all, the result is bad even when displayed "properly". ____________________________________________________________________ TonyN.:' mailto:tonynelson@georgeanelson.com ' http://www.georgeanelson.com/
Tony Nelson wrote:
At 2:13 PM -0400 10/2/05, sean wrote:
if I lpr a text file the open single quotes three characters:
Capital greek gamma ; uppercase C with a cedilla ; lowercase y with an umlaut
Close singe quotes are :
Capital greek gamma ; uppercase C with a cedilla ; uppercase O with an umluat.
Open double quotes are:
capital greek gamma; uppercase C with a cedilla ; english sterling sign
Close double quotes are:
capital greek gamma; uppercase C with a cedilla ; yen sign
less shows the text correctly. I'm on fc4.
sean
You have some sort of mismatch with the charset (usually language settings). The text file is in Unicode UTF-8, which less is expecting, while lpr or the printer is using some old 8-bit codepage (Microsoft calls it OEM 437). Try to get lpr or the printer onto the same page, accepting UTF-8. Check man lpr and the CUPS documentation it links to; possibly /etc/cups/cupsd.conf has a DefaultCharset set away from the default "utf-8". Or maybe it's some other part of CUPS.
Ok. set ( really uncommented ) cupsd.conf DefaultCharset utf-8 ( which is supposed to be the default). Restarted cups.
Also, whatever made the text file has "smartened" the quotes; being a computer and having no smarts at all, the result is bad even when displayed "properly".
The text is the ssh_config man page - man ssd_config | lpr. Same result.
sean
At 7:01 PM -0400 10/3/05, sean wrote:
Tony Nelson wrote:
At 2:13 PM -0400 10/2/05, sean wrote:
if I lpr a text file the open single quotes three characters:
Capital greek gamma ; uppercase C with a cedilla ; lowercase y with an umlaut
Close singe quotes are :
Capital greek gamma ; uppercase C with a cedilla ; uppercase O with an umluat.
Open double quotes are:
capital greek gamma; uppercase C with a cedilla ; english sterling sign
Close double quotes are:
capital greek gamma; uppercase C with a cedilla ; yen sign
less shows the text correctly. I'm on fc4.
sean
You have some sort of mismatch with the charset (usually language settings). The text file is in Unicode UTF-8, which less is expecting, while lpr or the printer is using some old 8-bit codepage (Microsoft calls it OEM 437). Try to get lpr or the printer onto the same page, accepting UTF-8. Check man lpr and the CUPS documentation it links to; possibly /etc/cups/cupsd.conf has a DefaultCharset set away from the default "utf-8". Or maybe it's some other part of CUPS.
Ok. set ( really uncommented ) cupsd.conf DefaultCharset utf-8 ( which is supposed to be the default). Restarted cups.
I take it that didn't change anything?
Also, whatever made the text file has "smartened" the quotes; being a computer and having no smarts at all, the result is bad even when displayed "properly".
The text is the ssh_config man page - man ssd_config | lpr. Same result.
Yeah, man bash has the same problem: a "smart" formatting package changes the literal single and double ASCII quotes in the source to something prettier for man to display. ____________________________________________________________________ TonyN.:' mailto:tonynelson@georgeanelson.com ' http://www.georgeanelson.com/
Tony Nelson wrote:
At 7:01 PM -0400 10/3/05, sean wrote:
Tony Nelson wrote:
At 2:13 PM -0400 10/2/05, sean wrote:
if I lpr a text file the open single quotes three characters:
Capital greek gamma ; uppercase C with a cedilla ; lowercase y with an umlaut
Close singe quotes are :
Capital greek gamma ; uppercase C with a cedilla ; uppercase O with an umluat.
Open double quotes are:
capital greek gamma; uppercase C with a cedilla ; english sterling sign
Close double quotes are:
capital greek gamma; uppercase C with a cedilla ; yen sign
less shows the text correctly. I'm on fc4.
sean
You have some sort of mismatch with the charset (usually language settings). The text file is in Unicode UTF-8, which less is expecting, while lpr or the printer is using some old 8-bit codepage (Microsoft calls it OEM 437). Try to get lpr or the printer onto the same page, accepting UTF-8. Check man lpr and the CUPS documentation it links to; possibly /etc/cups/cupsd.conf has a DefaultCharset set away from the default "utf-8". Or maybe it's some other part of CUPS.
Ok. set ( really uncommented ) cupsd.conf DefaultCharset utf-8 ( which is supposed to be the default). Restarted cups.
I take it that didn't change anything?
Right. I should have been clearer.
Also, whatever made the text file has "smartened" the quotes; being a computer and having no smarts at all, the result is bad even when displayed "properly".
The text is the ssh_config man page - man ssd_config | lpr. Same result.
Yeah, man bash has the same problem: a "smart" formatting package changes the literal single and double ASCII quotes in the source to something prettier for man to display.
But if utf-8 can't display the charcter set, what can?
sean
At 10:49 AM -0400 10/5/05, sean wrote:
if I lpr a text file the open single quotes three characters:
Capital greek gamma ; uppercase C with a cedilla ; lowercase y with an umlaut
...
less shows the text correctly. I'm on fc4.
...
But if utf-8 can't display the charcter set, what can?
utf-8 can do it -- you saw it do it in less -- so lpr must not be using utf-8, no matter what the default or what you set. I don't know why. ____________________________________________________________________ TonyN.:' mailto:tonynelson@georgeanelson.com ' http://www.georgeanelson.com/