FIX content tof focus utf-8

This commit is contained in:
Jasder 2020-06-05 18:14:19 +08:00
parent 883ff8f768
commit d06efe2738
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
module RepositoriesHelper
def render_decode64_content(str)
return nil if str.blank?
Base64.decode64(str)
Base64.decode64(str).force_encoding('UTF-8')
end
def download_type(str)