<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: french character printing in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/french-character-printing/m-p/2528726#M869445</link>
    <description>&lt;BR /&gt;Good idea, but i think it is much simple:&lt;BR /&gt;&lt;BR /&gt;1- $request is id of request. Use $file .&lt;BR /&gt;    Do not redirect to any file. Lp use standard output, unless you are using jetdirect software.&lt;BR /&gt;&lt;BR /&gt;To see what interface are doing add&lt;BR /&gt;set -x 2&amp;gt; /tmp/printer_trace.&lt;BR /&gt;&lt;BR /&gt;Print a file and then see that file.&lt;BR /&gt;&lt;BR /&gt;2- If you need to change character set of printer online you must add&lt;BR /&gt;echo &lt;SCAPE sequence=""&gt;. &lt;BR /&gt;search &amp;lt; scape squence&amp;gt; for french on printer's manual.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SCAPE&gt;</description>
    <pubDate>Fri, 25 May 2001 16:19:08 GMT</pubDate>
    <dc:creator>Carlos Fernandez Riera</dc:creator>
    <dc:date>2001-05-25T16:19:08Z</dc:date>
    <item>
      <title>french character printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/french-character-printing/m-p/2528723#M869442</link>
      <description>Hello everyone,&lt;BR /&gt;&lt;BR /&gt;I have many reports in French that need to print over many network printers (HP printers).  I know that by using "iconv" command (ie:  iconv -f iso81 -t roma8 filename &amp;gt; filename.X) then do: lp -d printer_name filename.X at the command line will print the reports with the French char. showing OK.  However, I want this to print automatically from the print menu so that once the report is created it will then go to the printers.  I had tried to modify the script for the printer in /etc/lp/interface/printer_name by adding this command into the script:&lt;BR /&gt;&lt;BR /&gt;requestid=$1 (defined by interface's script)&lt;BR /&gt;&lt;BR /&gt;/usr/bin/iconv -f iso81 -t roma8 $requestid &amp;gt; /var/spool/lp/request/$printer/$requestid&lt;BR /&gt;&lt;BR /&gt;by doing this I figure that when the lpsched invoke the interface program (which is the one I modify above) it will print my modified $requestid.  However, this does not work.  Can someone point where I went wrong?&lt;BR /&gt;&lt;BR /&gt;Thank you in advance for all your help.&lt;BR /&gt;&lt;BR /&gt;Thi</description>
      <pubDate>Tue, 15 May 2001 17:23:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/french-character-printing/m-p/2528723#M869442</guid>
      <dc:creator>Thi Vu</dc:creator>
      <dc:date>2001-05-15T17:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: french character printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/french-character-printing/m-p/2528724#M869443</link>
      <description>PROBLEM&lt;BR /&gt;A file containing French characters needs to be printed. The standard lp command does not give the correct output. &lt;BR /&gt;RESOLUTION&lt;BR /&gt;The printers are defaulting to a character set that does not contain the special accented characters. Reference the documentation for the printer in question for specifics on which character sets the printer supports. &lt;BR /&gt;HP LaserJets &lt;BR /&gt;&lt;BR /&gt;Many times printing in the extended character set range results in the characters coming out wrong. An e with a grave accent may come out as an upper-case O with an acute accent, etc. This is caused by a mis- match in the character sets. &lt;BR /&gt;&lt;BR /&gt;HP LaserJet printers have multiple "typefaces" available. The printer, like the OS assumes Roman8 encodings by default. This behavior can be changed with the lp command. &lt;BR /&gt;&lt;BR /&gt;lp -d -ocs0N &lt;BR /&gt;&lt;BR /&gt;The -ocs0N options tells the LaserJet to use a different character set. 0N represents ISO 8859-1. The printer manual gives details on available typefaces. &lt;BR /&gt;&lt;BR /&gt;Line/Impace Printers (i.e. HP2562C) &lt;BR /&gt;&lt;BR /&gt;For a line printer, iconv would have to be used to convert the file to be printed: &lt;BR /&gt;&lt;BR /&gt;/usr/bin/iconv -f iso8859_1 -t roman8 &amp;gt; &lt;BR /&gt;&lt;BR /&gt;lp -d -ocsOF  &lt;BR /&gt;&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;Or for the lasers&lt;BR /&gt;&lt;BR /&gt;In order to get the PC-8 french characters and Us English characters always&lt;BR /&gt;correct printed he need to modify the printer interface script (in&lt;BR /&gt;/var/spool/lp/interface/model.orig)  in the follow way:&lt;BR /&gt;&lt;BR /&gt;Change from:&lt;BR /&gt;&lt;BR /&gt; case "$charset" in&lt;BR /&gt;            def);;&lt;BR /&gt;            *)      echo "\033(${charset}\c";;&lt;BR /&gt;&lt;BR /&gt;to:&lt;BR /&gt;&lt;BR /&gt; case "$charset" in&lt;BR /&gt;           def)    echo "\033(19U\c";;&lt;BR /&gt;           *)      echo "\033(${charset}\c";;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;For line printers&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1) /usr/bin/iconv -f iso8859_1 -t roman8 french_jose &amp;gt; french_fix&lt;BR /&gt;2) lp -dprinter -ocs0F french_fix&lt;BR /&gt;&lt;BR /&gt;Or&lt;BR /&gt;&lt;BR /&gt;Change print menu to&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/usr/bin/iconv -f iso8859_1 -t roman8 french_jose | lp -dprinter -ocs0F &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 16 May 2001 07:35:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/french-character-printing/m-p/2528724#M869443</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2001-05-16T07:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: french character printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/french-character-printing/m-p/2528725#M869444</link>
      <description>Sorry it takes so long to reply to this message but I'm following all the advices below and it stills print gobbery gob.  I went and dig further and found that all the HP laserjet printers are now set their SYMBOL SET=PC-8 not ROMAN-8.  Thus I'm back at square one.  I'm now looking at different approach by re-setting the SYMBOL SET=ROMAN-8.  If you have knowledge of this I thank you.</description>
      <pubDate>Fri, 25 May 2001 15:14:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/french-character-printing/m-p/2528725#M869444</guid>
      <dc:creator>Thi Vu</dc:creator>
      <dc:date>2001-05-25T15:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: french character printing</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/french-character-printing/m-p/2528726#M869445</link>
      <description>&lt;BR /&gt;Good idea, but i think it is much simple:&lt;BR /&gt;&lt;BR /&gt;1- $request is id of request. Use $file .&lt;BR /&gt;    Do not redirect to any file. Lp use standard output, unless you are using jetdirect software.&lt;BR /&gt;&lt;BR /&gt;To see what interface are doing add&lt;BR /&gt;set -x 2&amp;gt; /tmp/printer_trace.&lt;BR /&gt;&lt;BR /&gt;Print a file and then see that file.&lt;BR /&gt;&lt;BR /&gt;2- If you need to change character set of printer online you must add&lt;BR /&gt;echo &lt;SCAPE sequence=""&gt;. &lt;BR /&gt;search &amp;lt; scape squence&amp;gt; for french on printer's manual.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SCAPE&gt;</description>
      <pubDate>Fri, 25 May 2001 16:19:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/french-character-printing/m-p/2528726#M869445</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2001-05-25T16:19:08Z</dc:date>
    </item>
  </channel>
</rss>

