logo       

Re: TextEncodings. :P: msg#03032

lang.realbasic.user

Subject: Re: TextEncodings. :P

At 7:55 AM -0500 1/31/04, Thomas Reed wrote:

Well, the first question is, what is chr(240)? By looking at a table of MacRoman characters and comparing to a unicode table, I see the character you're interested in appears to be an Apple logo. But the computer cannot know what you mean by chr(240) unless you tell it. 240 is a different character in different encodings. It's an Apple symbol in MacRoman, but it's something else in WindowsLatin1, and something else again in Shift-JIS (a Japanese encoding).

And actually, it's not even an Apple symbol in MacRoman, except in a small number of special Apple fonts.

However, if U+F8FF is the Apple logo in Unicode, then it always is that, irrespective of the font (though of course not all fonts will have a glyph for this character). So the safe way to get this character in RB would be Encodings.UTF8.Chr(&hF8FF).

Cheers,
- Joe
--
,------------------------------------------------------------------.
| Joseph J. Strout REAL Software, Inc. |
| joe-c3q76hHYWa4i8rCdYzckzA@xxxxxxxxxxxxxxxx
http://www.realsoftware.com |
`------------------------------------------------------------------'

- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise