Merge pull request #387 from arr2036/fix_encoding
Work around Grit encoding issues.
This commit is contained in:
@@ -15,7 +15,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.respond_to?(:force_encoding) ? first.author.name.force_encoding('UTF-8') : first.author.name
|
||||
end
|
||||
|
||||
def date
|
||||
|
||||
Reference in New Issue
Block a user