It appears that Clojure normally loads source files assuming they are UTF-8,
which makes supporting Unicode much easier.  This suggests that using a 
non-ASCII
character might not be too hard for them to support.

Source file src/jvm/clojure/lang/Compiler.java routine "loadFile" has this Java 
line,
which I believe forces reading of source code as UTF-8:
  return load(new InputStreamReader(f, RT.UTF8), new 
File(file).getAbsolutePath(), (new File(file)).getName());

It's possible to do indirect loading where additional magic is necessary to 
force
configuration of the encoding, as discussed here:
  
https://stackoverflow.com/questions/1431008/enabling-utf-8-encoding-for-clojure-source-files

--- David A. Wheeler

------------------------------------------------------------------------------
_______________________________________________
Readable-discuss mailing list
Readable-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/readable-discuss

Reply via email to