export PATH=\"/Applications/MAMP/bin:/usr/local/bin:/usr/local/sbin:usr/local/$
export DYLD_LIBRARY_PATH=\"/usr/local/mysql/lib:$DYLD_LIBRARY_PAT
The accepted answer didn't work for me, so I keep searching around and found this. It works for me. For sake of time saving I copy paste the two lines here. Enter this in terminal:
$ LC_CTYPE=en_US.UTF-8
$ LC_ALL=en_US.UTF-8
Note: I use Mac OS 10.7 if that's relevant. Setting locale in system preference didn't work for me either.