You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System/Uri.xml
+22-8Lines changed: 22 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -157,13 +157,19 @@ http://myUrl/
157
157
158
158
Enabling IRI and IDN affects the value of the <xref:System.Uri.DnsSafeHost%2A?displayProperty=nameWithType> property. Enabling IRI and IDN can also change the behavior of the <xref:System.Uri.Equals%2A>, <xref:System.Uri.OriginalString%2A>, <xref:System.Uri.GetComponents%2A>, and <xref:System.Uri.IsWellFormedOriginalString%2A> methods.
159
159
160
-
There are three possible values for IDN depending on the DNS servers that are used:
160
+
There are three possible values for IDN depending on the DNS servers that are used:
161
161
162
-
- idn enabled = All This value will convert any Unicode domain names to their Punycode equivalents (IDN names).
162
+
- idn enabled = All
163
+
164
+
This value will convert any Unicode domain names to their Punycode equivalents (IDN names).
163
165
164
-
- idn enabled = AllExceptIntranet This value will convert all Unicode domain names not on the local Intranet to use the Punycode equivalents (IDN names). In this case to handle international names on the local Intranet, the DNS servers that are used for the Intranet should support Unicode name resolution.
166
+
- idn enabled = AllExceptIntranet
167
+
168
+
This value will convert all Unicode domain names not on the local Intranet to use the Punycode equivalents (IDN names). In this case to handle international names on the local Intranet, the DNS servers that are used for the Intranet should support Unicode name resolution.
165
169
166
-
- idn enabled = None This value will not convert any Unicode domain names to use Punycode. This is the default value which is consistent with the .NET Framework 2.0 behaviour.
170
+
- idn enabled = None
171
+
172
+
This value will not convert any Unicode domain names to use Punycode. This is the default value which is consistent with the .NET Framework 2.0 behaviour.
167
173
168
174
When IRI parsing is enabled (iriParsing enabled = `true`) normalization and character checking are done according to the latest IRI rules in RFC 3986 and RFC 3987. When IRI parsing is disabled, normalization and character checking are performed according to RFC 2396 and RFC 2732 (for IPv6 literals). In versions of the .NET Framework before version 4.5, the default value is `false`. In .NET Framework version 4.5 and newer, the default value is `true`, and the enabled state of IRI parsing cannot be modified by settings in a *.config* file.
169
175
@@ -1569,7 +1575,9 @@ If you used an escaped string to construct this instance (for example, `"http://
1569
1575
1570
1576
1. Add the following line to the *machine.config* file under the .NET Framework 2.0 directory \<section name="uri" type="System.Configuration.UriSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
1571
1577
1572
-
2. Specify whether you want Internationalized Domain Name (IDN) parsing applied to the domain name and whether IRI parsing rules should be applied. This can be done in the *machine.config* or in the *app.config* file. For example, add the following: ```xml
1578
+
2. Specify whether you want Internationalized Domain Name (IDN) parsing applied to the domain name and whether IRI parsing rules should be applied. This can be done in the *machine.config* or in the *app.config* file. For example, add the following:
1579
+
1580
+
```xml
1573
1581
<configuration>
1574
1582
<uri>
1575
1583
<idn enabled="All" />
@@ -1584,11 +1592,17 @@ If you used an escaped string to construct this instance (for example, `"http://
1584
1592
1585
1593
There are three possible values for IDN depending on the DNS servers that are used:
1586
1594
1587
-
- idn enabled = All This value will convert any Unicode domain names to their Punycode equivalents (IDN names).
1595
+
- idn enabled = All
1596
+
1597
+
This value will convert any Unicode domain names to their Punycode equivalents (IDN names).
1588
1598
1589
-
- idn enabled = AllExceptIntranet This value will convert all external Unicode domain names to use the Punycode equivalents (IDN names). In this case to handle international names on the local Intranet, the DNS servers that are used for the Intranet should support Unicode names.
1599
+
- idn enabled = AllExceptIntranet
1600
+
1601
+
This value will convert all external Unicode domain names to use the Punycode equivalents (IDN names). In this case to handle international names on the local Intranet, the DNS servers that are used for the Intranet should support Unicode names.
1590
1602
1591
-
- idn enabled = None This value will not convert any Unicode domain names to use Punycode. This is the default value which is consistent with the .NET Framework 2.0 behaviour.
1603
+
- idn enabled = None
1604
+
1605
+
This value will not convert any Unicode domain names to use Punycode. This is the default value which is consistent with the .NET Framework 2.0 behaviour.
1592
1606
1593
1607
Enabling IRI parsing (iriParsing enabled = `true`) will do normalization and character checking according to the latest IRI rules in RFC 3987. The default value is `false` and will do normalization and character checking according to RFC 2396 and RFC 2732 (for IPv6 literals).
0 commit comments