diff --git a/app/controllers/concerns/git_common.rb b/app/controllers/concerns/git_common.rb index b8b2ec10a..eab069b8e 100644 --- a/app/controllers/concerns/git_common.rb +++ b/app/controllers/concerns/git_common.rb @@ -50,8 +50,8 @@ module GitCommon Rails.logger.info(" good repo_name is #{@repo_path}") @content = GitService.update_file(repo_path: @repo_path, file_path: @path, - message: message, - content: content, + message: message.force_encoding('UTF-8'), + content: content.force_encoding('UTF-8'), author_name: author_name, author_email: author_email) end