realbasic-nug
[Top] [All Lists]

WritePString weirdness...

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: WritePString weirdness...
From: Mark O'Neill <real at rbclass dot com>
Date: Fri, 28 Mar 2008 17:56:10 +0000
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Hi All,

If I use the following to write string to my preferences file:

stream.WritePString(MyStringToStore)

All works fine, except if the text to store is something like:

© 2008 Me Enterprises

When read back, it appears like this instead:

© 2008 Me Enterprises

A funny little character has been saved along with the string. This  
only does it if the text starts with @, if I omit the @ then there are  
no problems.

Do I need to encode the string first or something?

RB2007r4 OS X

Thanks for your help.

All the best,

Mark.
------------------------------------------------------------
RB Class
"Killer Tool Bar" - theme-based x-platform toolbar
www.rbclass.com



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

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>