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
- Characters are far apart !
- 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">
     开发者_如何学JAVA60; (),,,,,,() <lineBreak/>
     ( ^ _ ^ ) <lineBreak/>
  ( ,, )       ( ,, ) <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.
精彩评论