Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When running certain rails scripts in OSX' Terminal, I get warnings such as the following:

unable to convert "\xA9" from ASCII-8BIT to UTF-8 for tmp/cache/assets/CC7/4D0/sprockets%2Fd7d58761510113ba5435f0baba05573b, skipping

I've added

export LC_CTYPE="utf-8"

to my .bash_profile, but that did not fix anything. Apparently, these warnings don't matter, but I want to fix them. They're literally hundreds of them and they're a bit annoying.

share|improve this question
That value looks wrongish. Provide the output of locale -a to see what encodings are enabled on your system. Assign one of these to LC_CTYPE. Also, make sure Terminal is set to run in UTF-8 mode. – user13742 May 16 '13 at 18:07
LC_CTYPE can be set to just UTF-8 (which is included in /usr/share/locale but not included by locale -a), but utf-8 in lowercase doesn't work. Terminal should set LANG to something like en_US.UTF-8 by default though. – user495470 May 16 '13 at 18:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.