« Return to Thread: Scambled German umlauts when replying to and forwarding mails

Re: Scambled German umlauts when replying to and forwarding mails

by Hans-Juergen Beie :: Rate this Message:

Reply to Author | View in Thread

Martin Sebald schrieb am 11.06.2009 14:34 Uhr:

> Hello Tomas!
>
>>> after I turned on lossy encoding in SquirrelMail configuration the
>>> umlaut problem was solved for most mails. But I experienced that in some
>>> mails it does not work. Instead of scambled umlauts like ?? instead of ?
>>> I now see questionmarks instead of every umlaut in the reply field.
>>> I noticed that in the original mail the header just shows:
>>>> Content-type: text/plain
>>> and not like in other mails where it works something like this:
>>>> Content-Type: text/plain;
>>>>      charset="iso-8859-1"
>>>> Content-Transfer-Encoding: quoted-printable
>>>> Content-Language: de
>>> Is it possible that the missing of a charset (I don't think that it
>>> makes a difference if the charset is iso-8859 or utf-8) and the other
>>> information given screws up SquirrelMail?
>> Are these emails displayed correctly?
>
> Yes. I see all umlauts when opening these mails in SquirrelMail. The
> questionmarks just appear when replying or forwarding.
>
>> Do they have a MIME-Version header?
>
> No. Nothing.
>
> Most of those mails are mails from robots like contact forms so I believe
> that the authors of those programs did not care about correct mail headers.
> Though most mail clients like TheBat! are able to reply without crambling
> the umlauts. So it seems to be possible.
>
> @ Fredrik: As nobody can change things out of his/her competence (external
> servers somewhere in the internet) I thought focusing on the thing I can
> change is the best way to handle this. ;-) As I cannot do any programming I
> bring this to the attention of the people here. At least I can do this
> because I believe that every SM user and therefore every SM administrator
> should have the same problem.
>
> Kindest regards,
> Martin

I had this effect with replying to mails originally sent with
   Content-Type: text/plain;
          charset="utf-8"

Changing the 'Default Charset' via config.pl or
$default_charset in config.php doesn't fix this issue.

Today, I changed the following lines in functions/i18n.php:
-----> cut here >-------------------------
/*
$languages['de_DE']['NAME']='Deutsch';
$languages['de_DE']['CHARSET']='iso-8859-1';
$languages['de_DE']['LOCALE']=array('de_DE.ISO8859-1','de_DE.ISO-8859-1','de_DE');
$languages['de']['ALIAS']='de_DE';
*/
$languages['de_DE']['NAME']    = 'Deutsch';
$languages['de_DE']['CHARSET'] = 'utf-8';
$languages['de_DE']['LOCALE']  = array('de_DE.UTF-8','de_DE');
$languages['de']['ALIAS']      = 'de_DE';
-----< cut here <-------------------------

Now it seems to work.

BTW: I'm talkig about squirrelmail-1.4.15-2 on debian/etch.

hjb :-?
--
Hans-Juergen Beie
mailto:hjb@...


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
-----
squirrelmail-plugins mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-plugins@...
List archives: http://news.gmane.org/gmane.mail.squirrelmail.plugins
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-plugins

 « Return to Thread: Scambled German umlauts when replying to and forwarding mails