From: Don G. <do...@ge...> - 2011-08-13 06:08:30
|
Paul Khuong <pv...@pv...> wrote on Fri, 12 Aug 2011: > In article <877...@ma...>, Don Geddis <do...@ge...> wrote: >> Adding ":external-format :utf-8" doesn't seem to help (me). CMUCL works >> with or without it. SBCL fails, with or without it. > > Does that log include "F\"{u}r Elise"? Yes! :-) > Looks like your file is in something like ISO-8859-1, not UTF-8. That's it! You solved my problem. Adding :external-format :iso-8859-1 to WITH-OPEN-FILE allows me to read strings from my data file. I had been unable to find a list of possible external-formats in sbcl, so I couldn't just iterate through the choices. It also doesn't quite solve my secondary problem, of loading lisp code that has literal strings (which apparently are in ISO-8859-1 also). Although I guess LOAD takes an EXTERNAL-FORMAT keyword also, so I suppose I could change all my LOADs. Too bad there doesn't seem to be anything I can do inside the source code that is being loaded. But gosh darn, if you didn't figure why I couldn't get anything to work, and how to fix it. Thanks very much! -- Don _______________________________________________________________________________ Don Geddis http://don.geddis.org/ do...@ge... |