Hello Sabine,

Just a suggestion.
If your string is not pure ascii you may need to convert it to UTF8
first as this is what likely expect your OS host.

Indeed Pharo string are not internally encoded as utf8

Check the UTF8TextConverter class to do so.

Hilaire

Le 05/06/2016 18:39, Sabine Manaa a écrit :
> on command line, this works, my file is copied:
> cp  /Library/WebServer/Documents/reports/bär.pdf
> /Library/WebServer/Documents/reports/test.pdf
> 
> In Pharo (4+5) this does not work (file not copied, no error message)
> OSProcess command: 'cp  /Library/WebServer/Documents/reports/bär.pdf
> /Library/WebServer/Documents/reports/test-a.pdf'.     
>                       
> This works (file is copied):
> OSProcess     command: 'cp  /Library/WebServer/Documents/reports/bar.pdf
> /Library/WebServer/Documents/reports/test-b.pdf'. 
> 
> Seems that german umlauts don't work.
> 
> Is there something, I can I do, I don't want to replace the umlauts in
> filenames...
> 
> Regards
> Sabine
> 
> 

-- 
Dr. Geo
http://drgeo.eu


Reply via email to