我正在写一个用Template10 (汉堡包模板)的UWP应用程序,当我自定义设置页面时,我发现中文字符是乱码。
SettingsPage.xaml的部分代码
<TextBlock x:Name="SplictFictionSettings"
Text="文件分割设置"
Margin="12"
RelativePanel.AlignLeftWithPanel="True"
RelativePanel.AlignTopWithPanel="True"/>
<TextBox x:Name="RegularChapterSavePathTextBox"
Text="{Binding RegularChapterSavePath}"
Margin="12"
RelativePanel.AlignLeftWithPanel="True"
RelativePanel.Below="SplictFictionSettings"/>
<Button x:Name="ChooseRegularChpterSavePath"
Content="打开"
Margin="12"
RelativePanel.RightOf="RegularChapterSavePathTextBox"
RelativePanel.Below="SplictFictionSettings"/>在构建之后,我得到了不可读的字符。Here is a screen shot
我自己添加的其他页面工作正常。任何帮助都将不胜感激。谢谢。
发布于 2017-03-04 04:17:07
我很抱歉我不是UWP的人。然而,作为一些应用程序中的多语言开发人员。您的问题是您的编辑器同时支持UTF-8和UTF-16字符集,但是您的代码(应用程序)不支持。
问号显示在任何语言的不支持字符集上。确保您的中文字符串确实是UTF-8 (而不是BIG-5或GB)。
https://stackoverflow.com/questions/42587547
复制相似问题