Re: Problem with accents (character traslation problem?)

Andrés Yacopino <[email protected]> Mon, 23 Nov 2009 13:49:31 -0300
Newsgroups gmane.mail.squirrelmail.internationalization
Message-ID <[email protected]>
Thanks Tomas for replying, my answer to your questions are:
>
> Which charset is used, when SquirrelMail pages are displayed? SquirrelMail
> does not use meta headers. You should check character set automatically
> selected by your browser or you should check HTTP content-type headers.
>
>   
I saw that the firefox is using UTF-8. In both installations of 
squirrelmail is using the same.
> Could you test your PHP settings in broken setup
> (http://www.squirrelmail.org/wiki/TestPHPSettings) and show your core and
> mbstring settings and list of enabled PHP extensions. If you use proxy or
> some non-standard Apache modules in that setup, disable proxy and show list
> of enabled Apache modules.
>   
I have seen this differences in configuration between both installations:

-short_open_tag is on  in production server, off in the other.

mbstring configuration:

Production:

Directive 	Local Value 	Master Value
mbstring.detect_order 	auto 	auto
mbstring.encoding_translation 	Off 	Off
mbstring.func_overload 	0 	0
mbstring.http_input 	auto 	auto
mbstring.http_output 	pass 	pass
mbstring.internal_encoding 	UTF-8 	UTF-8
mbstring.language 	neutral 	neutral
mbstring.strict_detection 	Off 	Off
mbstring.substitute_character 	/no value/ 	/no value/


Other server:

Directive 	Local Value 	Master Value
mbstring.detect_order 	/no value/ 	/no value/
mbstring.encoding_translation 	Off 	Off
mbstring.func_overload 	0 	0
mbstring.http_input 	pass 	pass
mbstring.http_output 	pass 	pass
mbstring.internal_encoding 	/no value/ 	/no value/
mbstring.language 	neutral 	neutral
mbstring.strict_detection 	Off 	Off
mbstring.substitute_character 	/no value/ 	/no value/


I am using memcache in production server but not in the other server.

I have managed to put the same configuration in both server, but the 
problems remains.

> Could you save broken forwarded email with message_details plugin, remove
> all private information and show it here in attachment?
>
>
>   
Squirrelmail mail details:

Inbox (Squirrelmail) received from thunderbird:

Date: Mon, 23 Nov 2009 13:38:05 -0300
From: =?ISO-8859-1?Q?Andr=E9s_Yacopino?= <mail>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: mail
Subject: =?ISO-8859-1?Q?andr=E9s?=
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV using ClamSMTP

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
andr&eacute;s<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; ">
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
color: #33CC99;
font-weight: bold;
}
-->
</style>
<p>Andr&eacute;s Fernando Yacopino</p>
<p>Infraestructura - Dpto Sistemas</p>
<p class="style1">AcaSalud </p>
<p class="style1">Cooperativa de Prestaciones M&eacute;dico Asistenciales
Limitada </p>
<p>Tel: 0341-4208726</p>
<p><a class="moz-txt-link-abbreviated" href="mailto:mail">mail</a></p>
</div>
</body>
</html>

Sent Mail (From squirrelmail sent folder) Message details:


    Estructura del cuerpo

*Entidad* 	*Content-Type* 	*Nombre* 	*Codificación*
1 
<http://acamail.acasalud.com.ar/webmail/plugins/message_details/message_details_bottom.php?mailbox=Enviados&passed_id=46&passed_ent_id=0#1> 
	text/plain 	  	8bit
2 
<http://acamail.acasalud.com.ar/webmail/plugins/message_details/message_details_bottom.php?mailbox=Enviados&passed_id=46&passed_ent_id=0#2> 
	text/html 	  	8bit


    Cuerpo del mensaje

Received: from 10.z.x.y
(SquirrelMail authenticated user ayacopino)
by acamail.acasalud.com.ar with HTTP;
Mon, 23 Nov 2009 14:38:34 -0200 (ARST)
Message-ID: 
<ae6090012e5f5942738ad301bf0bbf94.squirrel@acamail.acasalud.com.ar>
In-Reply-To: <[email protected]>
References: <[email protected]>
Date: Mon, 23 Nov 2009 14:38:34 -0200 (ARST)
Subject: =?utf-8?B?UmU6IGFuZHLDqXM=?=
From: =?utf-8?B?QW5kcsOpcyBZYWNvcGlubw==?= <mail>
To: =?utf-8?B?QW5kcsOpcyBZYWNvcGlubw==?= <mail>
Reply-To: mail
User-Agent: SquirrelMail/1.4.16
MIME-Version: 1.0
Content-Type: multipart/alternative;boundary="----=_20091123143834_66850"
X-Priority: 3 (Normal)
Importance: Normal

*------=_20091123143834_66850*
*Content-Type: text/plain; charset="utf-8"*
*Content-Transfer-Encoding: 8bit*




 > andr&eacute;s
 > --
 > Untitled
Document
 > Andr&eacute;s Fernando Yacopino
 >
Infraestructura - Dpto Sistemas AcaSalud Cooperativa de Prestaciones
 > M&eacute;dico Asistenciales Limitada
 > Tel:
0341-4208726
 > [email protected]


Andrés
Yacopino.
Dpto Sistemas
AcaSalud

*------=_20091123143834_66850*
*Content-Type: text/html; charset="utf-8"*
*Content-Transfer-Encoding: 8bit*

<br />&gt; andr&amp;eacute;s<br />&gt; --<br />&gt; Untitled
Document<br />&gt; Andr&amp;eacute;s Fernando Yacopino<br />&gt;
Infraestructura - Dpto Sistemas AcaSalud Cooperativa de Prestaciones<br
/>&gt; M&amp;eacute;dico Asistenciales Limitada<br />&gt; Tel:
0341-4208726<br />&gt; [email protected]<br /><br /><br />Andrés
Yacopino.<br />Dpto Sistemas<br />AcaSalud
*------=_20091123143834_66850--*

You said that Thunderbird is set to use ISO8859P1. Thunderbird 2.x does not
have such charset in character set listing. Are you sure that you are using
ISO8859P1 and not ISO-8859-1,  ISO-8859-15 or Windows-1252. Could you check
Thunderbird email headers and show charset information from Content-Type
headers. If message is multipart, then check Content-Type headers in
text/plain and text/html message parts. Check original Thunderbird email and
not broken forwarded email.



Sorry, i am using ISO-8859-1 in thunderbird.

Thunderbird Content-type Headers:

SENT MAIL from thunderbird:

Message-ID: <[email protected]>
Date: Mon, 23 Nov 2009 13:38:05 -0300
From: =?ISO-8859-1?Q?Andr=E9s_Yacopino?= <mail>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: mail
Subject: =?ISO-8859-1?Q?andr=E9s?=
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
andr&eacute;s<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html; ">
<title>Untitled Document</title>
<style type="text/css">

<!--
.style1 {
	color: #33CC99;
	font-weight: bold;
}
-->
</style>
<p>Andr&eacute;s Fernando Yacopino</p>
<p>Infraestructura - Dpto Sistemas</p>
<p class="style1">AcaSalud </p>
<p class="style1">Cooperativa de Prestaciones M&eacute;dico Asistenciales
Limitada </p>
<p>Tel: 0341-4208726</p>
<p><a class="moz-txt-link-abbreviated" href="mailto:mail">ayacopino@mail</a></p>

</div>
</body>
</html>



RECEIVED MAIL (after replying from squirrelmail):


Message-ID: <ae6090012e5f5942738ad301bf0bbf94.squirrel@acamail.acasalud.com.ar>
In-Reply-To: <[email protected]>
References: <[email protected]>
Date: Mon, 23 Nov 2009 14:38:34 -0200 (ARST)
Subject: =?utf-8?B?UmU6IGFuZHLDqXM=?=
From: =?utf-8?B?QW5kcsOpcyBZYWNvcGlubw==?= <mail>
To: =?utf-8?B?QW5kcsOpcyBZYWNvcGlubw==?= <mail>
Reply-To: mail
User-Agent: SquirrelMail/1.4.16
MIME-Version: 1.0
Content-Type: multipart/alternative;boundary="----=_20091123143834_40077"
X-Priority: 3 (Normal)
Importance: Normal
X-Virus-Scanned: ClamAV using ClamSMTP

------=_20091123143834_40077
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit




>         andr&eacute;s
>  --
>   Untitled
Document
> Andr&eacute;s Fernando Yacopino
>
Infraestructura - Dpto Sistemas AcaSalud  Cooperativa de Prestaciones
> M&eacute;dico Asistenciales Limitada
> Tel:
0341-4208726
> 
mail


Andrés
Yacopino.
Dpto Sistemas
AcaSalud

------=_20091123143834_40077
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: 8bit

<br />&gt;         andr&amp;eacute;s<br />&gt;  --<br />&gt;   Untitled
Document<br />&gt; Andr&amp;eacute;s Fernando Yacopino<br />&gt;
Infraestructura - Dpto Sistemas AcaSalud  Cooperativa de Prestaciones<br
/>&gt; M&amp;eacute;dico Asistenciales Limitada<br />&gt; Tel:
0341-4208726<br />&gt; mail
<br /><br /><br />Andrés
Yacopino.<br />Dpto Sistemas<br />AcaSalud
------=_20091123143834_40077--

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
-----
squirrelmail-i18n mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
Information about translations: http://squirrelmail.org/wiki/LanguageTranslation
Statistics for translations: http://l10n-stats.squirrelmail.org/
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.internationalization
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-i18n