RE: [otrs] wrong encoding after update to v2.2.3

Oh sorry, I added the lines in my httpd.conf file for apache. Anywhere in the file should work. I guess by default perl does not take your OS's environment variables so occasionally you have to set them in the httpd.conf file. There is a way for it to take the OS's environment variables but I am unsure how that is done. Dan King Software Developer Canadian Resident Matching Service 613.237.0075 ext. 241 (Toll free) 877.CARMS.42 171 Nepean Street, Suite 300 Ottawa, ON, CAN K2P 0B4 www.carms.ca ------------------------------------------------------------------------------------ This e-mail message, including any attachments, is for the sole use of the intended recipients and may contain confidential and or privileged information. If you are not the intended recipient or this information has been forwarded in error, please contact the sender by reply e-mail and destroy copies of the original message. Ce message (incluant toute pièce jointe) s'adresse uniquement au(x) destinataire(s) prévu(s) ou à une personne autorisée à le recevoir en son (leur) nom. Il pourrait contenir des renseignements confidentiels ou protégés. Si vous l'avez reçu par erreur, nous vous prions d'en informer l'auteur dans les meilleurs délais, de ne pas divulguer son contenu et de le supprimer de votre système. Merci. -----Original Message----- From: otrs-bounces@otrs.org [mailto:otrs-bounces@otrs.org] On Behalf Of Alexander Scholler Sent: September 19, 2007 9:00 AM To: User questions and discussions about OTRS.org Subject: Re: [otrs] wrong encoding after update to v2.2.3 Hi Dan, Dan King schrieb:
Hey, I had a problem dealing with encoding before and I had to set a Perl Environment Variable so it knew about which encoding to use. You could try that, the code I used is below:
PerlSetEnv environment_Variable value PerlPassEnv environment_Variable
Thank you for you response. I'm no perl-guru. Please tell me where/who I have to aplly the Env-variable.
Dan King Software Developer Canadian Resident Matching Service 613.237.0075 ext. 241 (Toll free) 877.CARMS.42 171 Nepean Street, Suite 300 Ottawa, ON, CAN K2P 0B4 www.carms.ca
Bye, Alex
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support or consulting for your OTRS system? => http://www.otrs.com/

Hi Dan, Dan King schrieb:
Oh sorry, I added the lines in my httpd.conf file for apache. Anywhere in the file should work. I guess by default perl does not take your OS's environment variables so occasionally you have to set them in the httpd.conf file. There is a way for it to take the OS's environment variables but I am unsure how that is done.
[...]
Hey, I had a problem dealing with encoding before and I had to set a Perl Environment Variable so it knew about which encoding to use. You could try that, the code I used is below:
PerlSetEnv environment_Variable value PerlPassEnv environment_Variable
I'll try your hint as soon as I finished my analysis. My system runs under utf-8: * OTRS v2.2.3: DefaultCharset = utf-8 => therefore, mail-header contains Content-Type: text/plain; charset="utf-8" * MySQL-DB v4.1 * Linux: OpenSUSE 10.2 with original Apache2 and locals LANG=de_DE.UTF-8 LC_CTYPE="de_DE.UTF-8" LC_NUMERIC="de_DE.UTF-8" LC_TIME="de_DE.UTF-8" LC_COLLATE="de_DE.UTF-8" LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LC_NAME="de_DE.UTF-8" LC_ADDRESS="de_DE.UTF-8" LC_TELEPHONE="de_DE.UTF-8" LC_MEASUREMENT="de_DE.UTF-8" LC_IDENTIFICATION="de_DE.UTF-8" LC_ALL= I send a mail to customer with body containing "ä a" - the mail-source is encoded like the following, depending on SendmailEncodingForce which results in a corresponding mail-header e.g. "Content-Transfer-Encoding: 8bit" for SendmailEncodingForce = 8bit * with base64: YSDK That's wrong, because here the iso-encoding of "a ä" is base64-encoded. Correct would be YSDDpA== * with quoted-printable: a =E4= That's wrong, because when decoding quoted-printable, you see that the message is iso- but not utf8-encoded * with 8bit or 7bit: a ä which is in hex 6120C3A4 That's correct for 8bit. For 7bit, as far as I know "ä" cannot be encoded (am I right?), so 7bit-encoding cannot be used here. Could you please verify this for your installation and give feedback. If you need any detailed description of my installation (e.g. perl-version, ...?) let me know. Bye, Alex

Hi, I found a solution, see http://bugs.otrs.org/show_bug.cgi?id=2309 Would you please give feedback because I think that all v2.2.3 in utf-8-mode can be affected by this bug. Bye, Alex Alexander Scholler schrieb:
Hi Dan,
Dan King schrieb:
Oh sorry, I added the lines in my httpd.conf file for apache. Anywhere in the file should work. I guess by default perl does not take your OS's environment variables so occasionally you have to set them in the httpd.conf file. There is a way for it to take the OS's environment variables but I am unsure how that is done.
[...]
Hey, I had a problem dealing with encoding before and I had to set a Perl Environment Variable so it knew about which encoding to use. You could try that, the code I used is below:
PerlSetEnv environment_Variable value PerlPassEnv environment_Variable
I'll try your hint as soon as I finished my analysis.
My system runs under utf-8: * OTRS v2.2.3: DefaultCharset = utf-8 => therefore, mail-header contains Content-Type: text/plain; charset="utf-8" * MySQL-DB v4.1 * Linux: OpenSUSE 10.2 with original Apache2 and locals LANG=de_DE.UTF-8 LC_CTYPE="de_DE.UTF-8" LC_NUMERIC="de_DE.UTF-8" LC_TIME="de_DE.UTF-8" LC_COLLATE="de_DE.UTF-8" LC_MONETARY="de_DE.UTF-8" LC_MESSAGES="de_DE.UTF-8" LC_PAPER="de_DE.UTF-8" LC_NAME="de_DE.UTF-8" LC_ADDRESS="de_DE.UTF-8" LC_TELEPHONE="de_DE.UTF-8" LC_MEASUREMENT="de_DE.UTF-8" LC_IDENTIFICATION="de_DE.UTF-8" LC_ALL=
I send a mail to customer with body containing "ä a" - the mail-source is encoded like the following, depending on SendmailEncodingForce which results in a corresponding mail-header e.g. "Content-Transfer-Encoding: 8bit" for SendmailEncodingForce = 8bit
* with base64: YSDK That's wrong, because here the iso-encoding of "a ä" is base64-encoded. Correct would be YSDDpA== * with quoted-printable: a =E4= That's wrong, because when decoding quoted-printable, you see that the message is iso- but not utf8-encoded * with 8bit or 7bit: a ä which is in hex 6120C3A4 That's correct for 8bit. For 7bit, as far as I know "ä" cannot be encoded (am I right?), so 7bit-encoding cannot be used here.
Could you please verify this for your installation and give feedback. If you need any detailed description of my installation (e.g. perl-version, ...?) let me know.
Bye, Alex
_______________________________________________ OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs Support or consulting for your OTRS system? =http://www.otrs.com/
participants (2)
-
Alexander Scholler
-
Dan King