AppleScript has no problem dealing with UTF-8 characters inside the script. But it is unable to retrieve UTF-8 characters correctly from the environment variables.
osascript -e 'do shell script "echo " &"你好"'
你好
HELLO=你好 osascript -e 'do shell script "echo "& (system attribute "HELLO")'
你好
Any suggestions to fix this?