How to handle accents in Common Lisp (SBCL)?
|Added at||2017-01-04 21:01|
That's probably very basic, but I didn't know where else to ask. I'm trying to process some text information in an SLIME REPL from a file that are written in Portuguese, hence uses lots of accents characters - such as é, á, ô, etc..
When I'm handling texts in English I use the following function:
that cannot read accented characters, giving the error "the octet sequence #(195) cannot be decoded.".
So my question is: Is there a way to manipulate those characters automatically? It's okay to replace those characters for the letter without the accent ('á' turns into 'a') or simply deleting such characters ('cômodo' turns into 'cmodo'), whether it is done in the file itself before reading or during the reading process.