From 5c8d6f1bc36f676de37caa349ebf62913302ebfd Mon Sep 17 00:00:00 2001 From: matz Date: Thu, 18 May 2006 08:14:38 +0000 Subject: * lib/cgi.rb (CGI::out): support utf-8. a patch from Fujioka . [ruby-dev:28649] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/cgi.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/cgi.rb b/lib/cgi.rb index 2d75ac2488..54dc07a5a3 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -716,6 +716,8 @@ class CGI when /shift_jis/ni content = NKF::nkf('-s', content) options["language"] = "ja" unless options.has_key?("language") + when /utf-8/ni + content = NKF::nkf('-w', content) end end -- cgit v1.2.3