Describe the bug
When using the ApplicationLanguages::PrimaryLanguageOverride(L"jp") or ApplicationLanguages::PrimaryLanguageOverride(L"ko") to set the app's languae, the TextBlock render the '\' symbol as the Japanese currency symbol ¥ or Korean currency symbol ₩.
Why is this important?
The GridView item in a XAML file:
<GridView.ItemTemplate>
<DataTemplate x:DataType="local:ShapeData">
<StackPanel
Orientation="Horizontal"
CornerRadius="4">
<StackPanel
Orientation="Vertical"
VerticalAlignment="Center"
Margin="0,0,4,4">
...
<TextBlock
Text="{x:Bind CodeString, Mode=OneWay}"
Style="{ThemeResource CaptionTextBlockStyle}"
FontSize="12"
HorizontalAlignment="Left"
Margin="0,4,0,0" />
</StackPanel>
</DataTemplate>
</GridView.ItemTemplate>
using the ApplicationLanguages::PrimaryLanguageOverride(L"jp") or ApplicationLanguages::PrimaryLanguageOverride(L"ko") to set the app's languae, the TextBlock render the '\' symbol as the Japanese currency symbol ¥ or Korean currency symbol ₩.
Steps to reproduce the bug
- Create a WinUI project.
- The content of Main Window is GridView.
- Use the TextBlock control to render the unicode string, like "\U+0031".
- Use the ApplicationLanguages::PrimaryLanguageOverride(L"jp") or ApplicationLanguages::PrimaryLanguageOverride(L"ko") to set the app's languae.
Actual behavior
Expected behavior
Screenshots
No response
NuGet package version
WinUI 2.0.12
Windows version
Windows 11 (24H2): Build 26100
Additional context
No response
Describe the bug
When using the ApplicationLanguages::PrimaryLanguageOverride(L"jp") or ApplicationLanguages::PrimaryLanguageOverride(L"ko") to set the app's languae, the TextBlock render the '\' symbol as the Japanese currency symbol ¥ or Korean currency symbol ₩.
Why is this important?
The GridView item in a XAML file:
using the ApplicationLanguages::PrimaryLanguageOverride(L"jp") or ApplicationLanguages::PrimaryLanguageOverride(L"ko") to set the app's languae, the TextBlock render the '\' symbol as the Japanese currency symbol ¥ or Korean currency symbol ₩.
Steps to reproduce the bug
Actual behavior
Expected behavior
Screenshots
No response
NuGet package version
WinUI 2.0.12
Windows version
Windows 11 (24H2): Build 26100
Additional context
No response