realbasic-nug
[Top] [All Lists]

Re: WritePString weirdness...

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: WritePString weirdness...
From: Joe Strout <joe at inspiringapps dot com>
Date: Sun, 30 Mar 2008 15:20:04 -0600
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> <D2D75A46-7F0A-427C-81AB-C2FF194932B2 at rbclass dot com>
On Mar 30, 2008, at 2:55 PM, Mark O'Neill wrote:

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

Of course it does.  You do realize that there are hundreds of  
different forms of "plain text," right?

> The copyright symbol isn't some bizarre never-
> used character after all, and has been used in ascii for a loooong  
> time.

No, it is not and has never been part of the ASCII character set.

> What I mean is, if I write out:
>
> CopyrightText=©
>
> with a TextOutputStream it should appear like that in TextEdit,
> shouldn't it?

If TextEdit happens to correctly guess the encoding of the file,  
yes.  If not, then no.  Such is life in a world where Unicode was  
only invented a few years back and is still not universally used.

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

Apparently so.  Perhaps the text encoding FAQ will help -- please  
search the archives for it.

Best,
- Joe

--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.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>