Skip to content

tonytonyjan/rfc_2047

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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?='
# => "己所不欲,勿施於人。"

About

A Ruby implementation of RFC 2047

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages