realbasic-nug
[Top] [All Lists]

2 quick encoding questions

To: realbasic-nug at lists dot realsoftware dot com
Subject: 2 quick encoding questions
From: maclists at additional dot com
Date: Sun, 29 Feb 2004 18:11:31 -0500
1) Is the text in a text-edit field with System font /always/ UTF8 encoded (or, for example, can the user's selected locale or host OS change that)?

2) How can I get the underlying bytes in a UTF8 string (for example, to transmit them)? I can get the byte count using LenB, but then I'm stuck. Do I use Asc or AscB on each character and expect an integer value that will take 1, 2, 3, or 4 bytes to represent, or is there a better way?

Thanks.

Dave

P.S. Thanks for writing & posting the Text Encoding FAQ Joe.

- - -
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>