开发者

Is there any different in Screen displaying character between smart phone and non-smart phone?

I try to send some characters and ASCII characters in SMS. This what I found. Smartphone send to smart phone like WP7, the characters are displayed correctly and fit the screen. But When use smart phone send the same to Non-Smart phone. The problems are

  1. Characters are far apart !
  2. Characters image wont fit into the screen even though fit in smart phone

here the XAML : the image of a cat in Ascii

<TextBlock Height="104" HorizontalAlignment="Left" Margin="31,229,0,0" Name="txtBlkCat" Text="" VerticalAlignment="Top" Width="172" TextWrapping="Wrap">
          &#160;&#160;&#160;&#160;&#160;&#1开发者_如何学JAVA60;&#160;(),,,,,,() <lineBreak/>
          &#160;&#160;&#160;&#160;&#160;( ^ _ ^ ) <lineBreak/>
          &#160;&#160;( ,, )&#160;&#160;&#160;&#160;&#160;&#160;&#160;( ,, ) <lineBreak/>
</TextBlock>

I believe LineBreak and Space are translated correctly. can someone help to explain why this is happening?


A few things:

How do you define "smart phone" and "non-smart phone"? There are no hard and fast definitions and even within these categories there can be massive variations in capabilities and functionality.

Character encodings can be interpreted differently by differetn carriers and networks that an SMS message is sent through. Anything other than baisc ASCII characters can end up being represented differently.

What do you think 160 will be encoded as? I think it'll be a lower case letter a with an acute accent. (á). I'm guessing that's not what you want.

If trying to display ASCII art you should make sure you are using a typeface with mono-type spacing (fixed width) otherwise things may not display as you intend.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜