Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't send funny chars to SLIME

Although I set UTF-8 everywhere (in my lein project, the slime-lisp group customization, the Emacs buffer itself...), I keep getting this error when trying to run code such as (def beta "β"):

Coding system iso-latin-1-unix not suitable [...]

Happens only in Emacs, not when running lein repl from the command line, for instance.

What could be causing it? I'm using Ubuntu, if that makes any difference.

like image 737
deprecated Avatar asked Apr 16 '12 01:04

deprecated


1 Answers

you should have following code in your .emacs:

(setq slime-net-coding-system 'utf-8-unix)

and following in your project.clj when you run lein swank (or setup swank.encoding Java system property to utf-8):

:encoding "utf-8"
like image 196
Alex Ott Avatar answered Oct 05 '22 11:10

Alex Ott