Squirremail + PROBLEMAS DE TILDES Y Ñ SOLO EN EL CUERPO DEL MENSAJE....

Forums: 

Saludos Cordiales a todos.

Seguro me pueden ayudar....

Antes de comentarles el problema les detallo con lo que estoy trabajando

Centos 4.0
Apache versión 2.0.52
Postfix version 2.3.2
PHP PHP 5.1.6
MySQL 5.0.27(aqui no almaceno los correos sino en /home/vmail)
Squirrelmail 1.4.0

El problema es el siguiente cuando envio un mensaje como el siguiente :
Para : usuario@dominio.com
De :remitente@dominio.com
Asunto : campeón
Cuerpo del Mensaje:
La palabra campeón con tílde

EN LA BANDEJA DE ENTRADA ME LLEGA LO SIGUIENTE.

De : remitente@dominio.com
Para :usuario@dominio.com
Asunto : campeón (OJO: CON LA TILDE COMO EL REMITENTE ESCRIBIO ORIGINALMENTE)
Cuerpo del Mensaje:
La palabra campeón con tílde (CON LOS CARACTERES DISTORCIONADOS).

PERO LO RARO ES QUE EN LA CARPETA DE MENSAJES ENVIADOS TENGO

Asunto: campeón (OJO: CON LA TILDE COMO EL REMITENTE ESCRIBIO ORIGINALMENTE)
De: remitente@dominio.com
Para: usuario@dominio.com
Cuerpo del mensaje:
La palabra campeón con tílde (CON LOS CARATERES INTACTOS)

ARCHIVOS DE CONFIGURACION PARA ANALISIS

CONFIGURACION DE PHP.INI

; As of 4.0b4, PHP always outputs a character encoding by default in
; the Content-type: header. To disable sending of the charset, simply
; set it to be empty.
;
; PHP's built-in default is text/html
default_mimetype = "text/html"
default_charset = "utf-8"

CONFIGURACION APACHE.

#
# Specify a default charset for all pages sent out. This is
# always a good idea and opens the door for future internationalisation
# of your web site, should you ever want it. Specifying it as
# a default does little harm; as the standard dictates that a page
# is in iso-8859-1 (latin1) unless specified otherwise i.e. you
# are merely stating the obvious. There are also some security
# reasons in browsers, related to javascript and URL parsing
# which encourage you to always set a default char set.
#AddDefaultCharset UTF-8
AddDefaultCharset UTF-8

#
# Commonly used filename extensions to character sets. You probably
# want to avoid clashes with the language extensions, unless you
# are good at carefully testing your setup after each change.
# See http://www.iana.org/assignments/character-sets for the
# official list of charset names and their respective RFCs.
#
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8

# The set below does not map to a specific (iso) standard
# but works on a fairly wide range of browsers. Note that
# capitalization actually matters (it should not, but it
# does for some browsers).
#
# See http://www.iana.org/assignments/character-sets
# for a list of sorts. But browsers support few.
#
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis

CONFIGURACIONES EN SQUIRRELMAIL

CONFIGURACION del archivo /usr/share/squirrelmail/locale//es_ES/setup.php (en nuestro caso) :

$languages['es_ES']['NAME'] = 'Spanish';

$languages['es_ES']['ALTNAME'] = 'Español';

$languages['es_ES']['CHARSET'] = 'utf-8';

$languages['es_ES']['LOCALE'] = array('es_ES.UTF-8','es_ES.UTF-8','es_ES');

$languages['es']['ALIAS'] = 'es_ES';

// CONFIGURACION del archivo /usr/share/squirrelmail/functions/i18n.php:

$languages['es_ES']['NAME'] = 'Spanish';

$languages['es_ES']['CHARSET'] = 'utf-8';

$languages['es_ES']['LOCALE'] = array('es_ES.UTF-8','es_ES.UTF-8','es_ES');

$languages['es']['ALIAS'] = 'es_ES';

// CONFIGURACION del archivo /etc/squirrelmail/config.php :

$squirrelmail_default_language = 'es_ES';
$default_charset = 'iso-8859-1';
$lossy_encoding = false;

Muchas Gracias de Antemano.

Alguna vez hice un script

Imagen de Monkito

Alguna vez hice un script para que me enviara unos datos al correo, y también tuve ese inconveniente, pero me di cuenta que era por que cuando el crond lo ejecutaba el lenguaje estaba en inglés, le agregué ésto al script y listo:


declare -x LANG="es_EC.UTF-8"

espero te sirva de algo.

------------
counter.li.org

Cogito Ergo Sum

------------
counter.li.org

Cogito Ergo Sum