Skip to content

Commit c69b0c6

Browse files
committed
diff review
1 parent 7cf500a commit c69b0c6

File tree

1 file changed

+22
-8
lines changed

1 file changed

+22
-8
lines changed

xml/System/Uri.xml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -157,13 +157,19 @@ http://myUrl/
157157
158158
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.
159159
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:
161161
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).
163165
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.
165169
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.
167173
168174
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.
169175
@@ -1569,7 +1575,9 @@ If you used an escaped string to construct this instance (for example, `"http://
15691575
15701576
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" />
15711577
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
15731581
<configuration>
15741582
<uri>
15751583
<idn enabled="All" />
@@ -1584,11 +1592,17 @@ If you used an escaped string to construct this instance (for example, `"http://
15841592
15851593
There are three possible values for IDN depending on the DNS servers that are used:
15861594
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).
15881598
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.
15901602
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.
15921606
15931607
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).
15941608

0 commit comments

Comments
 (0)