Set charset encoding to UTF-8 for snippets
Fixes #2678 Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
This commit is contained in:
parent
cb33279a0f
commit
1b14864549
|
@ -63,7 +63,7 @@ class Projects::SnippetsController < Projects::ApplicationController
|
|||
def raw
|
||||
send_data(
|
||||
@snippet.content,
|
||||
type: "text/plain",
|
||||
type: 'text/plain; charset=utf-8',
|
||||
disposition: 'inline',
|
||||
filename: @snippet.file_name
|
||||
)
|
||||
|
|
|
@ -86,7 +86,7 @@ class SnippetsController < ApplicationController
|
|||
def raw
|
||||
send_data(
|
||||
@snippet.content,
|
||||
type: "text/plain",
|
||||
type: 'text/plain; charset=utf-8',
|
||||
disposition: 'inline',
|
||||
filename: @snippet.file_name
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue