I would discourage your from "re-setting" your system default encoding without careful thought. The default on OS X is en_US.UTF-8 Instead, write a shell script that starts xastir and set your encoding there. #!/bin/bash LANG=en_US /path/to/xastir ...