Conversation
(babel:octets-to-string
(handler-bind ((babel:character-encoding-error
#'(lambda (c)
(declare (ignore c))
(invoke-restart 'babel:retry-code (char-code #\?)))))
(babel:string-to-octets "a♡x" :encoding :cp932)))
|
The current way to partially achieve this is to use Have a look at some discussion about this issue here: https://github.com/cl-babel/babel/blob/master/src/encodings.lisp#L413 https://github.com/cl-babel/babel/blob/master/src/encodings.lisp#L473 and https://github.com/cl-babel/babel/blob/master/src/encodings.lisp#L498 are the correct places to insert the restart. I'd like to have an idea of performance impact of setting up a restart on each encoding error, versus using a |
|
ok. I will review code. to observe usecases to convert Japanese legacy codes.
I'm not sure more cases... |
No description provided.