![]() |
Hi, if I change the user for example to "uucp" and commit locale everything is de_DE.UTF-8 I have tried something that I wanna share with you. First I analyzed the E-Mail headers. If I send a facsimile with my thunderbird as ISO-8859-15 following stand in the header Charset=ISO-8859-15 Content-Transfer-Encoding: 8Bit My Test umlauts look like this Ein umlaut das oe - 366 - Ein umlaut das ae - 344 - Ein umlaut das ue - 374 - And if it is printed in our FAX it looks like this Ein umlaut das oe - - Ein umlaut das ae - - Ein umlaut das ue - - Then I tried to Encode in UTF-8 Header: Charset=UTF-8 Content-Transfer-Encoding: 8bit Umlauts look like: Ein umlaut das oe - ö - Ein umlaut das ae - ä - Ein umlaut das ue - ü - Printed in fax: Ein umlaut das oe - ^/ - Ein umlaut das ae - ^(strange char like in Word for new line) - Ein umlaut das ue - ^... - So it doesn't work like it should work. After all of that I tried sendfax from the CLI, Locale for user root is posix like I told before. I made a html file and inserted the above in it. Ein umlaut das oe - ö - Ein umlaut das ae - ä - Ein umlaut das ue - ü - After commiting "sendfax -n -d [Faxnumber] foo.php" I get something like this: Rule:offset 0 ascii = -- failed (unprintable char 0xc3) No match Foo.php: Can not determine file type ("file foo.php" says its an html file) I recoded it as following Recode u8..l9 < foo.php > foo_iso.php Umlauts look like: Ein umlaut das oe - 366 - Ein umlaut das ae - 344 - Ein umlaut das ue - 374 - Sendfax ... same error Html2ps foo_iso.php foo_iso.ps Sendfax worked Output on printer Ein umlaut das oe - ö - Ein umlaut das ae - ä - Ein umlaut das ue - ü - Well, on the CLI I get the correct output. But on which state I have to look if I want to print the mails correct. I think there is somewhere a wrong encoding, but I cant imagine where. :( Hope you have some ideas. Greetz Bernhard -----Ursprüngliche Nachricht----- Von: hylafax-users-bounce@xxxxxxxxxxx [mailto:hylafax-users-bounce@xxxxxxxxxxx] Im Auftrag von Philipp Thomas Gesendet: Mittwoch, 14. April 2010 16:22 An: hylafax-users@xxxxxxxxxxx Betreff: Re: [hylafax-users] german umlauts * Bernhard Schrader (b.schrader@xxxxxxxx) [20100414 08:49]: > if I commit "echo $LANG" I get the output POSIX > > if I commit "locale" I everything is POSIX except LC_CTYPE=de_DE.UTF-8 Then you're running the script as root as that is the typical setup for the root account. > export LC_ALL=ISO-8859-15 > export LANG=ISO-8859-15 See what locale says on a normal user account. > maybe this isn't the best way? :D You don't want to set LC_ALL and you should keep in mind that there are still quite a few scripts that fail to work as expected when the locale is something other than ASCII (which POSIX implies) spcially concerning the sort order. I'd rather check the mail and see if the mail header has a correct charset entry as I assume that mail2fax does regard the charset set for a mail. If indeed it does depend on the set locale I'd call that broken. Philipp ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx* ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*