Hi,
I really have looked in the archives, because I know this comes a lot, but I
don't see an answer.
I'm using the Linux IDE, RB2006r3.
What i need to do is display a list and open text files with Spanish names.
With this code:
Dim f as FolderItem
f=GetOpenFolderItem("????")
If f<>nil then
StaticText1.text=f.name
Else
StaticText1.text="Nil"
End If
when I select a file with no non-ascii characters, I see the file name appear
in the window. If I select a file with e.g. ñ or é in the name, I see "Nil".
So, obviously, I can't define or change the encoding after I get the
FolderItem because I'm not getting one.
If I can't do this using FolderItems, it looks like it won't be too difficult
to work around it with Shell commands. The drawback is that it isn't cross
platform.
So, If no one has a solution to the FolderItem way of doing this, can someone
give me the DOS versions of the Linux commands:
ls - List of contents of a directory
ls -l - same, but with more information
file - Gives the file type and text encoding of the file
pager - returns the text from the file.
Thank you,
Don
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>