Forum: Ruby on Rails Displaying encoded strings?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
lon (Guest)
on 2005-11-30 23:19
(Received via mailing list)
> Is there a way to present the following string correctly in a browser?
>
>  =?UTF-8?B?RndkOiDoqo3lrprjga7mioDooZPnmoTln7rmupY=?=

The most excellent ActionMailer has the tools to solve this issue.

	TMail::Unquoter.unquote_and_convert_to(string, 'utf-8')

As always, Rails rocks!

--
Lon B.
Speedymac LLC
http://www.speedymac.com
AIM: spdemac
This topic is locked and can not be replied to.