Converting folder names with funny characters

Hi,
has anyone written some conversion code in AS to convert folder names that contain spaces and other funny characters (like äöü) in a way the terminal understands it?

A folder name like “…:Schöner Ordner:” nets to be converted into “…/Sch303266ner Ordner/” in order to work with Terminal and ‘do shell script’

I think someone must have writen a converter for this!

Onyone?

Thnaks,
Philip

Try using the command:

set temp to POSIX path of file “Macintosh HD:Folder:Crazy Name:File.txt”
set unixPath to quoted form of temp

(For some reason, combining these two lines into one command resulted in an error for me.)