diff options
-rw-r--r-- | app/models/wiki_content_version.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/wiki_content_version.rb b/app/models/wiki_content_version.rb index 78e056649..79941bf41 100644 --- a/app/models/wiki_content_version.rb +++ b/app/models/wiki_content_version.rb @@ -83,8 +83,7 @@ class WikiContentVersion < ApplicationRecord # uncompressed data data end - str.force_encoding("UTF-8") - str + (+str).force_encoding('UTF-8') end end |