realbasic-nug
[Top] [All Lists]

Re: WritePString weirdness...

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: WritePString weirdness...
From: Mark O'Neill <real at rbclass dot com>
Date: Sun, 30 Mar 2008 21:55:33 +0100
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <226027DE-9E67-4701-90AD-12E8F3383CF6 at rbclass dot com> <A652AB13-FCF7-4D95-B6B1-5EC6EC3E84DE at inspiringapps dot com> <3E14F3DA-1A0F-47A7-A23A-5561C8EFDFC3 at rbclass dot com> <A0720DC7-6E68-4825-B1E7-06FA772B07E7 at inspiringapps dot com> <A08DAFF0-4131-4C31-BE88-965126CC576F at rbclass dot com> <F1F9B0ED-A168-42A7-961D-62B61685CDE7 at inspiringapps dot com>
Hi Joe,

On 29 Mar 2008, at 17:03, Joe Strout wrote:

> This is fine; it writes out a proper UTF-8 string.
>
>> but this is the result I get in the file...
>>
>> CopyrightText=©
>
> According to what?  Some tool that doesn't realize this is a UTF-8
> file, I would say.  Most Mac apps these days have some way you can
> tell them what encoding the file is; check that, correct it (to
> UTF-8), and you'll see that the data is correct.

But... Surely if the resulting file is a plain text file, it should  
write out plain text? The copyright symbol isn't some bizarre never- 
used character after all, and has been used in ascii for a loooong time.

What I mean is, if I write out:

CopyrightText=©

with a TextOutputStream it should appear like that in TextEdit,  
shouldn't it? And not like this:

CopyrightText=©

I don't see how that's an encoding issue when I'm *writing* to the  
file. Or am I missing something?

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>