mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/cgi.rb (CGI::out): support utf-8. a patch from Fujioka
<fuj@rabbix.jp>. [ruby-dev:28649] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d196598075
commit
5c8d6f1bc3
2 changed files with 7 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
Thu May 18 17:11:45 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/cgi.rb (CGI::out): support utf-8. a patch from Fujioka
|
||||
<fuj@rabbix.jp>. [ruby-dev:28649]
|
||||
|
||||
Thu May 18 00:42:12 2006 nobuyoshi nakada <nobu@ruby-lang.org>
|
||||
|
||||
* ext/extmk.rb, lib/mkmf.rb: use BUILD_FILE_SEPARATOR in Makefiles.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue