Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 928 Bytes

httprequest_contentencoding-property-prohibits-utf7.md

File metadata and controls

37 lines (26 loc) · 928 Bytes

HttpRequest.ContentEncoding property prohibits UTF7

Scope

Edge

Version Introduced

4.5

Source Analyzer Status

Available

Change Description

Beginning in .NET Framework 4.5, UTF-7 encoding is prohibited in xref:System.Web.HttpRequest?displayProperty=names' bodies. Data for applications that depend on incoming UTF-7 data will not decode properly in some cases.

  • Quirked
  • Build-time break

Recommended Action

Ideally, applications should be updated to not use UTF-7 encoding in xref:System.Web.HttpRequest?displayProperty=names. Alternatively, legacy behavior can be restored by using the aspnet:AllowUtf7RequestContentEncoding attribute of the appSettings element.

Affected APIs

  • P:System.Web.HttpRequest.ContentEncoding

Category

ASP.NET