Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 在WPF/XAML中使用日语字符_.net_Wpf_Xaml_Internationalization_Utf 8 - Fatal编程技术网

.net 在WPF/XAML中使用日语字符

.net 在WPF/XAML中使用日语字符,.net,wpf,xaml,internationalization,utf-8,.net,Wpf,Xaml,Internationalization,Utf 8,我想在我的WPF应用程序中显示日文字符: <Window x:Class="WpfApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="300" Width="300"> <Grid>

我想在我的WPF应用程序中显示日文字符:

<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" Width="300">
    <Grid>
        <TextBlock Text="はい" FontSize="30" />
    </Grid>
</Window>

当我在Windows XP上运行此应用程序时,不会显示字符。仅显示两个正方形。在Vista上,它们显示正确

因为VisualStudio能够显示它们,所以应该可以在我的应用程序中显示它们。我可能应该更改应用程序的默认字体?我需要什么字体


注意:我绝对不想安装额外的软件包或字体来运行它!我只想使用与Visual Studio相同的方法。

字体有问题。Windows XP在非亚洲国家销售,其字体仅包含这些国家常用的字形。这在9年前很重要,XP必须在资源非常有限的机器上运行。如果字体中缺少请求的图示符,Windows会将其替换为正方形

除了安装支持亚洲语言的字体(控制面板+区域和语言选项),当运行日语版本Windows的人查看您的UI时,这不会是一个问题。她会安装正确的字体