From c47cfe2bdd85b1561b57a5bccad9a1512af1f1bb Mon Sep 17 00:00:00 2001 From: Edmund von der Burg Date: Thu, 3 Mar 2011 09:05:44 +0000 Subject: Check that UTF8 in emails works --- t/app/helpers/send_email.t | 4 ++++ 1 file changed, 4 insertions(+) (limited to 't/app/helpers') diff --git a/t/app/helpers/send_email.t b/t/app/helpers/send_email.t index 6a7d77c0b..a44ddb01c 100644 --- a/t/app/helpers/send_email.t +++ b/t/app/helpers/send_email.t @@ -2,6 +2,7 @@ use strict; use warnings; +use utf8; BEGIN { use FixMyStreet; @@ -37,11 +38,14 @@ is $emails[0]->as_string, << 'END_OF_BODY', "email is as expected"; Subject: test email From: evdb@ecclestoad.co.uk To: test@recipient.com +Content-Type: text/plain; charset="utf-8" Hello, This is a test email where foo: bar. +utf8: 我们应该能够无缝处理UTF8编码 + Yours, FixMyStreet. END_OF_BODY -- cgit v1.2.3