On Dec 24, 2005, at 11:32 AM, John Sunderland wrote:
Harrie Westphal wrote:
It looks like you need to tell RB what encoding this string is in. If
what you wrote to the file was all data generated within RB then the
encoding is probably UTF8...
Thanks, Harry - that does it.
I noted Charles Yeomans' suggestion re WritePString but it appeared
that this would require me to find the right encoding, for which the
info at first glance appeared to be a maze of cross-referencing. In
fact I was about to start doing it by
b.WriteByte(chr(each char of the string))
but I will now stick to your suggestion.
If you're writing the data to the file, then you are in control of text
encoding. You simply ensure that all strings have a known encoding,
like UTF-8.
--------------
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>