The following does not work in this particular case, complaining that whatever you give it is not a character.
(handler-bind ((sb-int:character-coding-error
#'(lambda (c)
(invoke-restart 'use-value #\?))))
(sb-ext:octets-to-string *euc-jp* :external-format :euc-jp))
Where *euc-jp*
is a variable containing binary of EUC-JP encoded text.
I have tried #\KATAKANA_LETTER_NI
as well, instead of #\? and also just "". Nothing has worked so far.
Any help would be greatly appreciated!
EDIT: To reproduce *EUC-JP*
, fetch http://blogs.yahoo.co.jp/akira_w0325/27287392.html using drakma.