0
我正试图在WP8.0中实现聊天功能。每当我收到服务器的笑脸。它无法在用户界面中正确显示。这是代码
`在WindowsPhone 8.0中显示笑脸符号TextBlock控件
public string Comment
{
get
{ return _comment; }
set
{
if (value != null)
{
// value I am trying to convert is "Testing smileys \\uD83D\\uDE03\\uDE03"
string convertedCharacter = System.Text.RegularExpressions.Regex.Unescape(value);
_comment = convertedCharacter;
}
}
}
`
什么*究竟*您的意思是“我无法进行转换”?什么转换?你的代码是什么样的?怎么了?目前,我担心你的问题太难回答了。 –
人物像一个笑脸。当我在文本块上显示它时,它显示为\ u263a而不是笑脸。如何将其转换为笑脸。我无法理解如何将\ u263a转换为笑脸 –
我们不知道您是如何沟通的,或者您的任何代码是什么样的。我害怕,我们没有办法用这么少的信息来帮助你。 –