At 5:43 PM +0100 3/8/03, pantarei at mac dot com wrote:
Forgive me my ignorance, please. Since the GUI part of this app is
not working with RB 5 now, I postponed the nessesary(?) learning of
the RB 5 encoding stuff.
If I find an UTF8 boom, I convert the text:
TC = GetTextConverter(GetTextEncoding(&h100, 0, 2), GetTextEncoding(0))
Text = TC.Convert(Text)
I'm not sure what a "UTF8 boom" is, but the above will convert UTF-8
text to MacRoman. Are you sure that's what you want to do?
All my controlcodes are "low" asciis.
Then you shouldn't convert them; instead you should define them as
UTF-8. This is valid since ASCII is a subset of UTF-8 (as well as
any WorldScript encoding). Otherwise, when you do something like:
If MySubstringFromFile = "OBJE" Then
then RB 5.1 has to convert MySubstringFromFile from MacRoman to UTF-8
.... which it does fairly quickly if the string contains only ASCII
characters, but it's still unnecessary work. Whereas, if
MySubstringFromFile were already known to be valid UTF-8, then it
could just compare them directly.
Cheers,
- Joe
--
,------------------------------------------------------------------.
| Joseph J. Strout REAL Software, Inc. |
| joe at realsoftware dot com http://www.realsoftware.com |
`------------------------------------------------------------------'
---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>
Unsubscribe:
<mailto:realbasic-betas-off at lists dot realsoftware dot com>
Subscribe to the digest:
<mailto:realbasic-betas-digest at lists dot realsoftware dot com>
.
|