You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After comment out some code, it works as I expected. However, I known't know whether those code are essential. Maybe doing this introduce another bug:
(defunwrite-json-chars (s stream)
"Write JSON representations (chars or escape sequences) ofcharacters in string S to STREAM."
(loop for ch across s
for code = (char-code ch)
with special
if (setqspecial (car (rassoc ch +json-lisp-escaped-chars+)))
do (write-char#\\stream) (write-charspecialstream)
else;; if (< #x1f code #x7f)do (write-char ch stream)
;; else;; do (let ((special '#.(rassoc-if #'consp +json-lisp-escaped-chars+)));; (destructuring-bind (esc . (width . radix)) special;; (format stream "\\~C~V,V,'0R" esc radix width code)))
))
The text was updated successfully, but these errors were encountered:
json:encode-json-to-string output ALL character as ASCII code. Non-ASCII become escape sequence. There's a post on stack overflow describing this: http://stackoverflow.com/questions/12304702/cl-json-encodes-unicode-chars-by-outputting-their-unicode-escape-string-in-ascii
After comment out some code, it works as I expected. However, I known't know whether those code are essential. Maybe doing this introduce another bug:
The text was updated successfully, but these errors were encountered: