From 4338d357ce8ae61dc96f3bec48e4de8c5677bd0d 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: http://svn.ruby-lang.org/repos/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 2d75ac248..54dc07a5a 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