20 writes to Encoding
Microsoft.AspNetCore.Http.Results (1)
TypedResults.cs (1)
170mediaTypeHeaderValue.Encoding = contentEncoding ?? mediaTypeHeaderValue.Encoding;
Microsoft.AspNetCore.Http.Results.Tests (6)
ContentResultTests.cs (2)
20Encoding = Encoding.Unicode 62new MediaTypeHeaderValue("text/foo") { Encoding = Encoding.ASCII },
ResultsTests.cs (2)
1654expectedMediaType.Encoding = encoding; 1674expectedMediaType.Encoding = encoding;
TypedResultsTests.cs (2)
1433expectedMediaType.Encoding = encoding; 1453expectedMediaType.Encoding = encoding;
Microsoft.AspNetCore.HttpLogging (2)
MediaTypeOptions.cs (2)
38mediaType.Encoding ??= Encoding.UTF8; 68mediaType.Encoding = encoding;
Microsoft.AspNetCore.Mvc.Core (2)
ControllerBase.cs (1)
273mediaTypeHeaderValue.Encoding = contentEncoding ?? mediaTypeHeaderValue.Encoding;
Infrastructure\SystemTextJsonResultExecutor.cs (1)
20Encoding = Encoding.UTF8
Microsoft.AspNetCore.Mvc.Core.Test (3)
ContentResultTest.cs (2)
32Encoding = Encoding.Unicode 74new MediaTypeHeaderValue("text/foo") { Encoding = Encoding.ASCII },
Infrastructure\JsonResultExecutorTestBase.cs (1)
118Encoding = Encoding.ASCII
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
NewtonsoftJsonResultExecutor.cs (1)
24Encoding = Encoding.UTF8
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (1)
118Encoding = Encoding.ASCII
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
241mediaTypeHeaderValue.Encoding = contentEncoding ?? mediaTypeHeaderValue.Encoding;
PageModel.cs (1)
573mediaTypeHeaderValue.Encoding = contentEncoding ?? mediaTypeHeaderValue.Encoding;
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
ViewComponentResultTest.cs (2)
528new MediaTypeHeaderValue("text/foo") { Encoding = Encoding.ASCII }.ToString(), 601ContentType = new MediaTypeHeaderValue("text/html") { Encoding = Encoding.UTF8 }.ToString(),
13 references to Encoding
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
214var encoding = FilterEncoding(contentType.Encoding);
Microsoft.AspNetCore.Http.Results (2)
src\Shared\ResponseContentTypeHelper.cs (1)
72return parsed.Encoding;
TypedResults.cs (1)
170mediaTypeHeaderValue.Encoding = contentEncoding ?? mediaTypeHeaderValue.Encoding;
Microsoft.AspNetCore.HttpLogging (2)
MediaTypeHelpers.cs (1)
40encoding = mediaType.Encoding;
MediaTypeOptions.cs (1)
40_mediaTypeStates.Add(new MediaTypeState(mediaType) { Encoding = mediaType.Encoding });
Microsoft.AspNetCore.Mvc.Core (2)
ControllerBase.cs (1)
273mediaTypeHeaderValue.Encoding = contentEncoding ?? mediaTypeHeaderValue.Encoding;
src\Shared\ResponseContentTypeHelper.cs (1)
72return parsed.Encoding;
Microsoft.AspNetCore.Mvc.Core.Test (2)
ContentResultTest.cs (1)
234var encoding = MediaTypeHeaderValue.Parse(contentType).Encoding;
Formatters\TextOutputFormatterTests.cs (1)
202Assert.Null(MediaTypeHeaderValue.Parse(context.ContentType.Value).Encoding);
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
src\Shared\ResponseContentTypeHelper.cs (1)
72return parsed.Encoding;
Microsoft.AspNetCore.Mvc.RazorPages (2)
PageBase.cs (1)
241mediaTypeHeaderValue.Encoding = contentEncoding ?? mediaTypeHeaderValue.Encoding;
PageModel.cs (1)
573mediaTypeHeaderValue.Encoding = contentEncoding ?? mediaTypeHeaderValue.Encoding;
Microsoft.AspNetCore.WebUtilities (1)
MultipartSectionStreamExtensions.cs (1)
39var streamEncoding = sectionMediaType?.Encoding;