diff --git a/Pages/plain.cshtml b/Pages/plain.cshtml index 5d6b3e9..a880929 100644 --- a/Pages/plain.cshtml +++ b/Pages/plain.cshtml @@ -2,7 +2,7 @@ @model IndexModel @{ Layout = null; - Response.ContentType = "text/plain"; + Response.ContentType = "text/plain; charset=utf-8"; } @if (Model.Path.Contains("..")) { return; @@ -12,4 +12,4 @@ } @foreach (var file in Model.Files) { @Html.Raw(file + "\n") -} \ No newline at end of file +} diff --git a/Pages/playlist.cshtml b/Pages/playlist.cshtml index 49932f3..3326a85 100644 --- a/Pages/playlist.cshtml +++ b/Pages/playlist.cshtml @@ -4,11 +4,11 @@ @{ var path = HttpUtility.UrlDecode(Request.QueryString.Value.TrimStart('?')); Layout = null; - Response.ContentType = "text/plain"; + Response.ContentType = "text/plain; charset=utf-8"; } @if (Model.Path.Contains("..")) { return; } @foreach (var file in Model.Files) { @Html.Raw("https://" + Request.Host + "/" + Model.Fullpath + "/" + file.Replace("?", "%3F") + "\n") -} \ No newline at end of file +}