From: Yusuke ENDOH Date: 2010-05-29T13:49:36+09:00 Subject: [ruby-dev:41455] Re: [Bug #3360](Closed) rdoc fails when including BOM 遠藤です。 2010年5月29日12:07 Nobuyoshi Nakada : > This issue was solved with changeset r28062. Eric を通さずに直していただいてしまったようですが、「html 出力の charset 指定が無視されている」の方も直していただけますでしょうか。 diff --git a/lib/rdoc/generator/template/darkfish/index.rhtml b/lib/rdoc/generator/template/darkfish/index.rhtml index e853235..8dad4f4 100644 --- a/lib/rdoc/generator/template/darkfish/index.rhtml +++ b/lib/rdoc/generator/template/darkfish/index.rhtml @@ -1,4 +1,4 @@ - +"?> diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb index 3c08b5e..7f41163 100644 --- a/lib/rdoc/rdoc.rb +++ b/lib/rdoc/rdoc.rb @@ -414,6 +414,7 @@ The internal error was: if enc ||= (Encoding::UTF_8 if utf8) content.force_encoding(enc) end + content.encode!(@options.charset) end content -- Yusuke Endoh