set macpath to POSIX file "/Volumes/เม่น/Users" as Unicode
text
and do "Compile", then this gets transformed into:
set macpath to file " ‘ßÀÏ:Volumes:‡¡Ëπ:Users" as Unicode
text
Sounds like you're on 10.4 or earlier. AppleScript only supports
Unicode source code in 10.5+; previously it used the host system's
primary encoding, which is why your non-MacRoman(?) characters are
getting mangled. If you must use AppleScript for some reason, either
write your unicode string literals using raw «data utxt...» format,
or pass in unicode strings as parameters to an Apple event constructed
via NSAppleEventDescriptor.