0.0
No commit activity in last 3 years
No release in over 3 years
An implementation of RFC 2047
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13
 Project Readme

rfc_2047

It is a Ruby implementation of RFC 2047, which is more accurate and fault-tolerant than ConradIrwin/rfc2047-ruby. The former can encode, decode, and handle charset correctly, while the latter only implement decoding function.

Installation

gem install new_rfc_2047

Usage

Rfc2047.encode('己所不欲,勿施於人。')
# => "=?UTF-8?B?5bex5omA5LiN5qyy77yM5Yu/5pa95pa85Lq644CC?="
Rfc2047.decode '=?UTF-8?B?5bex5omA5LiN5qyy77yM5Yu/5pa95pa85Lq644CC?='
# => "己所不欲,勿施於人。"