2017-04-18 07:52:04 +08:00
## WebUtility.HtmlEncode and WebUtility.HtmlDecode round-trip BMP correctly
2017-04-06 04:52:19 +08:00
### Scope
Edge
### Version Introduced
4.5
### Source Analyzer Status
Planned
### Change Description
2017-04-21 02:19:05 +08:00
For applications that target the .NET Framework 4.5, characters that are outside
the Basic Multilingual Plane (BMP) round-trip correctly when they are passed to
the < xref:System.Net.WebUtility.HtmlDecode ( System . String ) >
methods.
2017-04-06 04:52:19 +08:00
- [x] Quirked
- [ ] Build-time break
### Recommended Action
2017-04-21 02:19:05 +08:00
This change should have no effect on current applications, but to restore the
2017-04-21 23:37:48 +08:00
original behavior, set the `targetFramework` attribute of the `<httpRuntime>`
2017-04-21 02:19:05 +08:00
element to a string other than "4.5". You can also set the
`unicodeEncodingConformance` and `unicodeDecodingConformance` attributes of the
`<webUtility>` configuration element to control this behavior independently of
the targeted version of the .NET Framework.
2017-04-06 04:52:19 +08:00
### Affected APIs
* `M:System.Net.WebUtility.HtmlEncode(System.String)`
* `M:System.Net.WebUtility.HtmlEncode(System.String,System.IO.TextWriter)`
### Category
ASP.NET
<!--
### Notes
This shouldn't affect anything. An analyzer may not add much beyond ApiPort, but we could do basic parameter analysis and potentially implement a code fix
-->
2017-04-18 07:52:04 +08:00
<!-- breaking change id: 62 -->