Hacky fix for encoding issues

This commit is contained in:
Arran Cudbard-Bell
2012-06-18 09:44:20 +02:00
parent e6d568fd49
commit c704d1f3b3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -15,8 +15,8 @@ module Precious
:id7 => v.id[0..6],
:num => i,
:selected => @page.version.id == v.id,
:author => v.author.name,
:message => v.message,
:author => v.author.name.force_encoding('UTF-8'),
:message => v.message.force_encoding('UTF-8'),
:date => v.committed_date.strftime("%B %d, %Y"),
:gravatar => Digest::MD5.hexdigest(v.author.email) }
end
+1 -1
View File
@@ -17,7 +17,7 @@ module Precious
page_versions = @page.versions
first = page_versions ? page_versions.first : false
return DEFAULT_AUTHOR unless first
first.author.name
first.author.name.force_encoding('UTF-8')
end
def date