Newsletter: Why utf-8 is bad choice [Opera bug]
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks
Author Message
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Newsletter: Why utf-8 is bad choice [Opera bug]
Posted: Sun Feb 08, 2009 6:19 pm
Reply with quote

I found a great article that explains why utf-8 is not always the best choice, for example for sending e-mails.

Here's the article: www.hallvord.com/blog/...ice.en.htm

It's written by a Opera worker, so can be considered as something useful.


Also, if a site is multilingual, there should be a selection for a language to send specific newsletter only to the users who have set that language as their language in their user account settings.


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Newsletter: Why utf-8 is bad choice
Posted: Sun Feb 08, 2009 7:29 pm
Reply with quote

Yep, still using Eudora here, and while it can handle UTF-8 for body text (mostly), the Subject is always gobbledegook. Doesn't exactly help my spam filter either: it stills sorts the wheat from the chaff correctly, just it's really hard to tell sometimes if it is working correctly...
_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: Newsletter: Why utf-8 is bad choice
Posted: Sun Feb 08, 2009 7:34 pm
Reply with quote

I actually just discovered that Opera Mail for example does support utf-8 though e-mails sent via Newsletter will be shown incorrectly... checking out what's really wrong there...

Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
layingback
Forum Admin


Joined: Apr 19, 2004
Posts: 953

PostPost subject: Re: Newsletter: Why utf-8 is bad choice
Posted: Sun Feb 08, 2009 7:41 pm
Reply with quote

Here's the start of the From: from my notification that there is a post on this thread:
=?utf-8?Q?CPG-Dragonfly=E2=84=A2_CMS?=,10:34 2/8/2009 +0000, ...

_________________
Pro_News: The complete module for Dragonfly - now available as version 3.3

layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
2.6 - 3.6 / 1.3.42 - 2.2.12 / 5.0.92 - 5.1.37 - 5.1.54 / 4.4.49 - 5.2.17 - 5.3 / 9.2.1
Back to top
View user's profile Visit poster's website
Eestlane
I18N / L10N Lead Dev


Joined: Apr 06, 2005
Posts: 1406
Location: Estonia

PostPost subject: Re: Newsletter: Why utf-8 is bad choice
Posted: Sun Feb 08, 2009 7:50 pm
Reply with quote

The from thing shouldn't have any effect.

Here are two examples, first works as it should, other does show the Subject right but content wrong.

Right:
Code:
Delivered-To:  madisliias @ gmail.com
Received: by 10.103.90.13 with SMTP id s13cs145474mul; Sat, 7 Feb 2009
 23:37:21 -0800 (PST)
Received: by 10.151.111.1 with SMTP id o1mr1113558ybm.33.1234078639603; Sat,
 07 Feb 2009 23:37:19 -0800 (PST)
Return-path: <dragon@host3.veridianhosting.com>
Received: from host3.veridianhosting.com (host3.veridianhosting.com
 [64.15.138.210]) by mx.google.com with ESMTP id
 u25si8177330ele.16.2009.02.07.23.37.19; Sat, 07 Feb 2009 23:37:19 -0800 (PST)
Received-SPF: pass (google.com: best guess record for domain of  dragon @ host3.veridianhosting.com designates 64.15.138.210 as permitted sender) client-ip=64.15.138.210;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of  dragon @ host3.veridianhosting.com designates 64.15.138.210 as permitted sender) smtp.mail=dragon@host3.veridianhosting.com
Received: from dragon by host3.veridianhosting.com with local (Exim 4.69)
 (envelope-from <dragon@host3.veridianhosting.com>) id 1LW4E9-0003Tx-Ib; Sun,
 08 Feb 2009 02:37:17 -0500


Subject: Teema teavitus - reDesign updated 27. January demo here!
Date: Sun, 08 Feb 2009 09:37:17 +0200
From: "Dragonfly Eesti" <madisliias@gmail.com>
Message-ID: <c45fad89040e7e7abc0a627de3ddfc46@000.pri.ee>
X-Priority: 3
X-Mailer: PHPMailer [version 1.73]
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset="utf-8"
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - host3.veridianhosting.com
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [713 715] / [47 12]
X-AntiAbuse: Sender Address Domain - host3.veridianhosting.com

Tere,

Sulle tuli see kiri, sest oled palunud end teavitada, kui keegi postitab veebilehel Dragonfly Eesti teemasse "reDesign updated 27. January demo here!". Sa saad kasutada allolevat linki teema k?¼lastamiseks. Enne selle k?¼lastamist sulle uusi teateid ei saadeta.

http://000.pri.ee/Forums/viewtopic/p=1512.html#1512

Kui sa ei soovi enam, et sind sellest teavitataks, vajuta allolevat linki:

http://000.pri.ee/Forums/viewtopic/t=253/unwatch=topic.html


Wrong:
Code:
Delivered-To:  madisliias @ gmail.com
Received: by 10.223.120.144 with SMTP id d16cs166787far; Sun, 8 Feb 2009
 11:43:17 -0800 (PST)
Received: by 10.151.108.5 with SMTP id k5mr2100624ybm.194.1234122194633; Sun,
 08 Feb 2009 11:43:14 -0800 (PST)
Return-path: <dragon@host3.veridianhosting.com>
Received: from host3.veridianhosting.com (host3.veridianhosting.com
 [64.15.138.210]) by mx.google.com with ESMTP id
 o29si9723399elf.9.2009.02.08.11.43.13; Sun, 08 Feb 2009 11:43:14 -0800 (PST)
Received-SPF: pass (google.com: best guess record for domain of  dragon @ host3.veridianhosting.com designates 64.15.138.210 as permitted sender) client-ip=64.15.138.210;
Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of  dragon @ host3.veridianhosting.com designates 64.15.138.210 as permitted sender) smtp.mail=dragon@host3.veridianhosting.com
Received: from dragon by host3.veridianhosting.com with local (Exim 4.69)
 (envelope-from <dragon@host3.veridianhosting.com>) id 1LWFYd-00071l-QC for
  madisliias @ gmail.com; Sun, 08 Feb 2009 14:43:11 -0500
Subject: =?iso-8859-13?Q?=C4ge_v=F5i?=
Date: Sun, 08 Feb 2009 21:43:11 +0200
From: "Dragonfly Eesti" <madisliias@gmail.com>
Message-ID: <e8942fa88f792f86c3c9bde668d9d033@000.pri.ee>
X-Priority: 3
X-Mailer: PHPMailer [version 1.73]
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="b1_e8942fa88f792f86c3c9bde668d9d033"
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - host3.veridianhosting.com
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [713 715] / [47 12]
X-AntiAbuse: Sender Address Domain - host3.veridianhosting.com


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

Hello,

Tavaline lihtne tekst täpitähtedega õäöü hehee


Best Regards,

Dragonfly Eesti Staff



We sent you this message because you have selected to receive newsletters from our site

You can choose to unsubscribe from our mailings at any time by following this link

If you would like further assistance, please send an email to our administrator


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

Hello,<br />
<br />
Tavaline lihtne tekst täpitähtedega õäöü hehee<br />
<br />
<br />
Best Regards,<br />
<br />
Dragonfly Eesti Staff<br />
<br />
<br />
<br />
We sent you this message because you have selected to receive newsletters from our site<br />
<br />
You can choose to unsubscribe from our mailings at any time by following <a href="http://000.pri.ee/Your_Account/edit=prefs.html">this</a> link<br />
<br />
If you would like further assistance, please send an email to <a href="mailto:madisliias@gmail.com">our administrator</a>



--b1_e8942fa88f792f86c3c9bde668d9d033--


The second is multipart/alternative, which means it consits different versions with same content, in this case text/plain and text/html (in form of type/subtype).

Don't know what to blaim yet, though. As looking the e-mail straight in Gmail everything is correct. It might be Opera's bug, in case I should let them know about it. Thanks for discussing along, layingback Smile

EDIT: It seems to be Opera's bug indeed Surprised as I tried to test Opera Mail in utf-8 and html formatted and got the same problem.


Eestlane's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.0.63/5.0.67/5.2.8/9.2.1
Back to top
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   Printer Friendly Page     Forum IndexAdd-Ons & Blocks All times are GMT
Page 1 of 1


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Dedicated Server & Bandwidth Sponsored by DedicatedNOW
User Info [x]

Welcome Anonymous

Nickname
Password
(Register)

Last CVS commits [x]

Languages [x]

Community [x]

Support for DragonflyCMS in a other languages:

Deutsch
Español

X-links [x]
UltraEdit Browse Happy logo Firefox MySQL PostgreSQL Valid CSS! Valid XHTML 1.0! Unicode Encoded Badge NukeBiz Resources Raven DragonflyCMS Dedicated Now InsideSupport Lampe Berger

Preview theme [x]
Each user can view the site with a different theme.
Themes marked with a * also change the forum look.


You are seeing squares or questionmarks on this page?

All content of this website is copyrighted by the Creative Commons NC-SA
The logos and trademarks used on this site are the property of their respective owners
We are not responsible for comments posted by our users, as they are the property of the poster.
Our server runs on a P3 1.2GHz with 512MB RAM with no accelerators
Support GoPHP5.org
This page generated in 1.1825 seconds with 16 DB Queries in 0.1897 seconds
Memory Usage: 2.9 MB
Interactive software released under GNU GPL, Code Credits, Privacy Policy