realbasic-betas.mbox
[Top] [All Lists]

Re: what's my extension?

To: REALbasic Betas <realbasic-betas at lists dot realsoftware dot com>
Subject: Re: what's my extension?
From: Matt Neuburg <matt at tidbits dot com>
Date: Thu, 16 May 2002 11:34:18 -0700
On Wed, 15 May 2002 14:19:59 -0500, "Chad J McQuinn" <cjm at purdue dot edu> 
said:

>
>
>On 5/14/02 4:24 PM, "Matt Neuburg" <matt at tidbits dot com> wrote:
>
>> I have a folder testing? (that's "testing" followed by option-f) containing
>> a file called "this is a big long name, longer than 32 characters, I'm
>> pretty darned sure.txt". I select that file using this code:
>>
>> dim f as folderitem
>> f = getopenfolderitem("any")
>> editfield1.text = f.parent.displayName + chr(13) + f.name
>>
>> Here is the result:
>>
>> testing?í
>> this is a big long na#BF304.txt
>>
>> Both names are wrong.
>
>No. The first name is right. It is just in the UTF8 encoding

Sorry, that was a mistake and I presented it confusingly. The point,
repeated from my first note, is not that it's bad about the UTF8 encoding;
the point is that it's bad about the inconsistency - f.name is not in UTF8
encoding but f.parent.name is. So:

dim f as folderitem
f = getopenfolderitem("any")
editfield1.text = f.parent.name + chr(13) + f.name

ACTION Menus 1.0.1 ?í
ACTION Menus? 1.0.1

The TM is handled automatically, but the option-f is not.

m.
--

matt neuburg, phd = matt at tidbits dot com, http://www.tidbits.com/matt
pantes gar anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/


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