Hi All,
On 29 Mar 2008, at 03:04, Mark O'Neill wrote:
> I checked my code, and I even hard-coded the following:
>
> if f<> nil then
> txtOut=f.CreateTextFile
> txtOut.WriteLine("CopyrightText=©") // notice this line
> txtOut.Close
> end if
>
> but this is the result I get in the file...
>
> CopyrightText=©
>
> Am I missing something here?
>
> If anything, this points to the fact that it wasn't the WritePString's
> fault - and as I've hard-coded that text and writing to a text stream,
> what am I doing wrong?
Well, I'm not sure why that "not" character kept appearing before the
© symbol, (could it be an RB bug in 2007r4?) but as I needed a "Text
To HTML Code" function for another part of my program, I've used that
routine to convert the string to html-safe code. So from the above
example, the string on file now looks like:
CopyrightText=©
Seems an unnecessary step if you ask me, but works now all the same.
Obviously, I decode it when it's read back in! :)
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>
|