[Lift] Re: email encoding problem

2009-09-14 Thread David Pollak
On Sat, Sep 12, 2009 at 9:54 AM, night_stalker usur...@gmail.com wrote:


 Thank you all for your replies.

 I just modified  net/liftweb/util/Mailer.scala,
 replaced all  text/html  with  text/html;charset=UTF-8 , then
 problem solved.


I'll check this in



 the result mail's Content-Type part becomes:

  Content-Type: text/plain; charset=UTF-8
  Content-Transfer-Encoding: quoted-printable

 and 你好 is shown correctly.
 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: email encoding problem

2009-09-12 Thread night_stalker

the last part is like:

Subject: hi
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary==_Part_0_21171036.1252770284921

--=_Part_0_21171036.1252770284921
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

p??/p
--=_Part_0_21171036.1252770284921--

I don't know how to set Content-Type ...

On Sep 12, 10:34 pm, Indrajit Raychaudhuri indraj...@gmail.com
wrote:
 Can you please check what the Content-Type field in the mail header
 looks like in the mail that you get?

 Cheers, Indrajit

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: email encoding problem

2009-09-12 Thread Viktor Klang
Content-Type: text/html; charset=us-ascii

IMHO that should read:

Content-Type: text/html; charset=UTF-8

So basically, the content-type isn't correctly set.

On Sat, Sep 12, 2009 at 5:55 PM, night_stalker usur...@gmail.com wrote:


 the last part is like:

 Subject: hi
 MIME-Version: 1.0
 Content-Type: multipart/alternative;
boundary==_Part_0_21171036.1252770284921

 --=_Part_0_21171036.1252770284921
 Content-Type: text/html; charset=us-ascii
 Content-Transfer-Encoding: 7bit

 p??/p
 --=_Part_0_21171036.1252770284921--

 I don't know how to set Content-Type ...

 On Sep 12, 10:34 pm, Indrajit Raychaudhuri indraj...@gmail.com
 wrote:
  Can you please check what the Content-Type field in the mail header
  looks like in the mail that you get?
 
  Cheers, Indrajit

 



-- 
Viktor Klang

Blog: klangism.blogspot.com
Twttr: viktorklang

Lift Committer - liftweb.com
AKKA Committer - akkasource.org
Cassidy - github.com/viktorklang/Cassidy.git
SoftPub founder: http://groups.google.com/group/softpub

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: email encoding problem

2009-09-12 Thread Indrajit Raychaudhuri

Indeed, but Content-Transfer-Encoding: 7bit could be the real
suspect.

I think, MimeBodyPart forces us-ascii charset for 7bit encoding.

Cheers, Indrajit

On Sep 12, 9:03 pm, Viktor Klang viktor.kl...@gmail.com wrote:
 Content-Type: text/html; charset=us-ascii

 IMHO that should read:

 Content-Type: text/html; charset=UTF-8

 So basically, the content-type isn't correctly set.



 On Sat, Sep 12, 2009 at 5:55 PM, night_stalker usur...@gmail.com wrote:

  the last part is like:

  Subject: hi
  MIME-Version: 1.0
  Content-Type: multipart/alternative;
         boundary==_Part_0_21171036.1252770284921

  --=_Part_0_21171036.1252770284921
  Content-Type: text/html; charset=us-ascii
  Content-Transfer-Encoding: 7bit

  p??/p
  --=_Part_0_21171036.1252770284921--

  I don't know how to set Content-Type ...

  On Sep 12, 10:34 pm, Indrajit Raychaudhuri indraj...@gmail.com
  wrote:
   Can you please check what the Content-Type field in the mail header
   looks like in the mail that you get?

   Cheers, Indrajit

 --
 Viktor Klang

 Blog: klangism.blogspot.com
 Twttr: viktorklang

 Lift Committer - liftweb.com
 AKKA Committer - akkasource.org
 Cassidy - github.com/viktorklang/Cassidy.git
 SoftPub founder:http://groups.google.com/group/softpub
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: email encoding problem

2009-09-12 Thread night_stalker

Thank you all for your replies.

I just modified  net/liftweb/util/Mailer.scala,
replaced all  text/html  with  text/html;charset=UTF-8 , then
problem solved.

the result mail's Content-Type part becomes:

  Content-Type: text/plain; charset=UTF-8
  Content-Transfer-Encoding: quoted-printable

and 你好 is shown correctly.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: email encoding problem

2009-09-12 Thread Viktor Klang
Good catch!

On Sep 12, 2009 6:18 PM, Indrajit Raychaudhuri indraj...@gmail.com
wrote:


Indeed, but Content-Transfer-Encoding: 7bit could be the real
suspect.

I think, MimeBodyPart forces us-ascii charset for 7bit encoding.

Cheers, Indrajit

On Sep 12, 9:03 pm, Viktor Klang viktor.kl...@gmail.com wrote: 
Content-Type: text/html; charset...

 On Sat, Sep 12, 2009 at 5:55 PM, night_stalker usur...@gmail.com wrote:
   the last part is l...

 Viktor Klang   Blog: klangism.blogspot.com  Twttr: viktorklang   Lift
Committer - liftweb.com...

--~--~-~--~~~---~--~~ You received this
message because you are subs...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---