Fix UTF-8

This commit is contained in:
bootstraponline
2012-11-29 16:58:47 -07:00
parent 10fa5c7bd2
commit 1b53e36666
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -23,6 +23,9 @@ require File.expand_path('../gollum/sanitization', __FILE__)
require File.expand_path('../gollum/web_sequence_diagram', __FILE__)
require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
# Set ruby to UTF-8 mode
$KCODE = 'U'
module Gollum
VERSION = '2.4.1'
+4
View File
@@ -38,6 +38,10 @@ context "Frontend" do
assert_equal 'm-plus-f', 'μ†ℱ'.to_url
end
test 'utf-8 kcode' do
assert_equal 'μ†ℱ'.scan(/./), ["μ", "", ""]
end
test "retain edit information" do
page1 = 'page1'
user1 = 'user1'