Skip to content

Commit 4ea2d06

Browse files
authored
fix bad code migration (dotnet#3389)
* fix bad code migration * feedback
1 parent f0986cb commit 4ea2d06

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

docs/framework/wpf/advanced/globalization-for-wpf.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
---
22
title: "Globalization for WPF"
3-
ms.custom: ""
43
ms.date: "03/30/2017"
54
ms.prod: ".net-framework"
6-
ms.reviewer: ""
7-
ms.suite: ""
85
ms.technology:
96
- "dotnet-wpf"
10-
ms.tgt_pltfrm: ""
117
ms.topic: "article"
128
helpviewer_keywords:
139
- "XAML, international user interface"
@@ -31,18 +27,18 @@ This topic introduces issues that you should be aware of when writing
3127

3228
<a name="char_reference"></a>
3329
### Character References
34-
A character reference gives the number of the particular [!INCLUDE[TLA#tla_unicode](../../../../includes/tlasharptla-unicode-md.md)] character it represents, in either decimal or hexadecimal. The following example shows a decimal character reference.
35-
36-
```
37-
Ϩ
38-
```
39-
40-
This example shows a hexadecimal character reference. Notice that it has an **x** in front of the hexadecimal number.
41-
42-
```
43-
Ϩ
44-
```
45-
30+
A character reference gives the UTF16 code unit of the particular [!INCLUDE[TLA#tla_unicode](../../../../includes/tlasharptla-unicode-md.md)] character it represents, in either decimal or hexadecimal. The following example shows a decimal character reference for the COPTIC CAPITAL LETTER HORI, or 'Ϩ':
31+
32+
```
33+
&#1000;
34+
```
35+
36+
The following example shows a hexadecimal character reference. Notice that it has an **x** in front of the hexadecimal number.
37+
38+
```
39+
&#x3E8;
40+
```
41+
4642
<a name="encoding"></a>
4743
### Encoding
4844
The encoding supported by [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharptla-xaml-md.md)] are [!INCLUDE[TLA#tla_ascii](../../../../includes/tlasharptla-ascii-md.md)], [!INCLUDE[TLA2#tla_unicode](../../../../includes/tla2sharptla-unicode-md.md)] UTF-16, and UTF-8. The encoding statement is at the beginning of [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharptla-xaml-md.md)] document. If no encoding attribute exists and there is no byte-order, the parser defaults to UTF-8. UTF-8 and UTF-16 are the preferred encodings. UTF-7 is not supported. The following example demonstrates how to specify a UTF-8 encoding in a [!INCLUDE[TLA2#tla_xaml](../../../../includes/tla2sharptla-xaml-md.md)] file.

0 commit comments

Comments
 (0)