diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-28 17:12:28 -0500 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-28 17:12:48 -0500 |
commit | 5ec2c7dc29b36d85b2658465b8a979deb0529d7e (patch) | |
tree | 33c3ee6bbd8fbdc53492cd0b6b9fd6ad6121be36 /actionpack/test/fixtures | |
parent | e23554d79e2db2324144f3ab58f82a895b93fbf5 (diff) | |
download | rails-5ec2c7dc29b36d85b2658465b8a979deb0529d7e.tar.gz rails-5ec2c7dc29b36d85b2658465b8a979deb0529d7e.tar.bz2 rails-5ec2c7dc29b36d85b2658465b8a979deb0529d7e.zip |
Ruby 1.9: ERB template encoding using a magic comment at the top of the file
Diffstat (limited to 'actionpack/test/fixtures')
-rw-r--r-- | actionpack/test/fixtures/test/utf8.html.erb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/test/fixtures/test/utf8.html.erb b/actionpack/test/fixtures/test/utf8.html.erb index 0b4d19aa0e..58cd03b439 100644 --- a/actionpack/test/fixtures/test/utf8.html.erb +++ b/actionpack/test/fixtures/test/utf8.html.erb @@ -1,2 +1,5 @@ +<%# encoding: utf-8 -%> Русский текст -日本語のテキスト
\ No newline at end of file +<%= "日".encoding %> +<%= @output_buffer.encoding %> +<%= __ENCODING__ %> |