mozillahispano / smw-reminder

Email reminders for semantic mediawiki data
http://www.mozilla-hispano.org
6 stars 3 forks source link

Email incorrect encoding #21

Closed nukeador closed 12 years ago

nukeador commented 12 years ago

Email content encoding seem to be us-ascii instead of UTF-8. Example:

Date: Tue, 28 Aug 2012 15:00:33 -0700 (PDT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Mozilla Hispano] Tienes 6 tareas a punto de caducar From: eventos@mozilla-hispano.org X-Gm-Message-State: ALoCoQmJAsk1c2UjpAO6IOP2EdGrrfCwdmNxoi9nD5yiNLSEQja1WnoRbbLooCNv4mtlpGNwxUdk

Hola Nukeador,

Actualmente tienes 6 tarea(s) asignada(s) a ti que están a punto de caducar.

Administración técnica/Tareas/Migrar los audios de blip.tv https://www.mozilla-hispano.org/documentacion/Administración_técnica/Tareas/Migrar_los_audios_de_blip.tv Participación de colaboradores/Tareas/Identificar novatos no activos https://www.mozilla-hispano.org/documentacion/Participación_de_colaboradores/Tareas/Identificar_novatos_no_activos Participación de colaboradores/Tareas/Mejora de la página de participa https://www.mozilla-hispano.org/documentacion/Participación_de_colaboradores/Tareas/Mejora_de_la_página_de_participa Administración técnica/Tareas/BDD para stage https://www.mozilla-hispano.org/documentacion/Administración_técnica/Tareas/BDD_para_stage Participación de colaboradores/Tareas/Migrar la documentación para miembros al wiki https://www.mozilla-hispano.org/documentacion/Participación_de_colaboradores/Tareas/Migrar_la_documentación_para_miembros_al_wiki Participación de colaboradores/Tareas/Añadir tareas finalizadas a los perfiles https://www.mozilla-hispano.org/documentacion/Participación_de_colaboradores/Tareas/Añadir_tareas_finalizadas_a_los_perfiles

Saludos

ccarruitero commented 12 years ago

I run test today and it's ok

https://gist.github.com/3532788

nukeador commented 12 years ago

@ccarruitero If you export it to a text file and open with a editor, I guess it always be displayed correctly.

The problem here I think is that the text is UTF-8, but you are sending a header telling the email clients to read it as us-ascii.

Changing that header to utf-8 should do the trick.

willyaranda commented 12 years ago

Anyway, I received it correctly. With accents, but yes, the header should be set, just to be safe.

On Fri, Aug 31, 2012 at 9:43 AM, Nukeador notifications@github.com wrote:

@ccarruitero https://github.com/ccarruitero If you export it to a text file and open with a editor, I guess it always be displayed correctly.

The problem here I think is that the text is UTF-8, but you are sending a header telling the email clients to read it as us-ascii.

Changing that header to utf-8 should do the trick.

— Reply to this email directly or view it on GitHubhttps://github.com/mozillahispano/smw-reminder/issues/21#issuecomment-8184777.

Guillermo López Leal - @willyaranda http://www.pijusmagnificus.com/

jvillalobos commented 12 years ago

https://github.com/mozillahispano/smw-reminder/pull/22