mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* lib/net/imap (encode_utf7): encode & properly. Thanks, Kengo
Matsuyama. [ruby-dev:38063] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ddafeb2f2a
commit
2587316c73
3 changed files with 10 additions and 1 deletions
|
@ -19,6 +19,10 @@ class IMAPTest < Test::Unit::TestCase
|
|||
utf8 = "\357\274\241\357\274\242\357\274\243".force_encoding("UTF-8")
|
||||
s = Net::IMAP.encode_utf7(utf8)
|
||||
assert_equal("&,yH,Iv8j-".force_encoding("UTF-8"), s)
|
||||
|
||||
utf8 = "\343\201\202&".force_encoding("UTF-8")
|
||||
s = Net::IMAP.encode_utf7(utf8)
|
||||
assert_equal("&MEI-&-".force_encoding("UTF-8"), s)
|
||||
end
|
||||
|
||||
def test_decode_utf7
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue