Michael -

Which version of RB?

Tim
--
Tim Jones
[EMAIL PROTECTED]

On Feb 19, 2007, at 1:44 PM, Michael Gerbes wrote:

> Hi Joe,
>
> I'm very sorry, I realized just now, that  I was replying to a mail
> from January 06 (not 07 as I believed.)
>
> My problem:
> I'm using the "cp" command to copy files. Files with names containing
> "Umlauts" (ä,ö,ü,etc.) are not copied.
> I believed, that your advice (Converting the UTF8 string to octal)
> could help me out, but I realize now, that it was taken out of
> context. As you pointed out, the Shellpath already contains the octal
> representation of the Umlauts, but nonetheless the following code is
> not working (Error 1) for files containing Umlauts in their names...
>
> (source, destination as folderitem)
>    dim b as string
>    b = "cp -fpR "+source.ShellPath+" "+destination.ShellPath
>    me.Execute b
>
>
> Greetings,
> Michael
>
>
> Am 19.02.2007 um 16:15 schrieb [EMAIL PROTECTED]:
>
>> On Feb 19, 2007, at 09:29 UTC, Michael Gerbes wrote:
>>
>>> A quick follow-up question:
>>>
>>> Converting from the Folderitem to the shellpath:
>>>
>>> (source as folderitem)
>>>
>>>    dim s, sneu as string
>>>    s = source.ShellPath.ConvertEncoding(Encodings.UTF8)
>>>
>>>    for i as integer = 0 to lenb(s)
>>>      dim t as integer = midb(s,i,1).ascb
>>>      if t > 127 then
>>>        sneu = sneu + "\"+Oct(t)
>>>      else
>>>        sneu = sneu + midb(s,i,1)
>>>      end if
>>>    next
>>>
>>> I am obviously doing something wrong here, because the shell is  
>>> still
>>> not recognizing this path...
>>
>> I wouldn't expect this to do anything, because ShellPath already has
>> any non-ASCII characters encoded in octal, doesn't it?  Your code
>> would
>> seem to be attempting to do this again, which wouldn't have any
>> effect.
>>
>> But I also don't understand why you're trying to do this... the shell
>> should recognize a .ShellPath without any alteration, that being the
>> whole point of ShellPath.  The only caveat is that different shells
>> may
>> have different standards for handling non-ASCII characters.  I  
>> believe
>> Jon Johnson posted something about this not too long ago, but I'm
>> afraid I didn't really pay attention as it's not an issue I've run
>> into
>> myself.
>>
>> Best,
>> - Joe
>>
>> --
>> Joe Strout -- [EMAIL PROTECTED]
>> Verified Express, LLC     "Making the Internet a Better Place"
>> http://www.verex.com/
>>
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to