From: Felix Weilbach <felix.weilbach@t-online.de>
To: emacs-devel@gnu.org
Subject: JSON parsing of Extended ASCII
Date: Tue, 10 May 2022 19:18:37 +0200 [thread overview]
Message-ID: <4763d841-54f0-d146-d968-beb7988431ff@t-online.de> (raw)
Hello,
I'm working on source code that has Extended ASCII characters inside
comments in it. This is unfortunate because LSP-mode crashes if it
encounters an invalid UTF-8 string. I know this mailing list is not
about LSP-mode, but I could track down the issue to the function
json_stringn() that gets called in lisp_to_json() inside json.c. Visual
Studio Code can cope with these files fine and their LSP implementation
has no problem with these files. Therefore I think Emacs should handle
this situation as well. I want to find a solution to this problem and
implement it. What do you think about this problem? Have you ideas for a
solution? Should a potential solution be implemented inside Emacs or
LSP-mode?
I think there could be implemented a function inside Emacs that tries to
convert Extended ASCII to UTF-8 and then encodes it to JSON.
Kind regards
Felix Weilbach
next reply other threads:[~2022-05-10 17:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-10 17:18 Felix Weilbach [this message]
2022-05-10 17:30 ` JSON parsing of Extended ASCII Eli Zaretskii
2022-05-10 17:50 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4763d841-54f0-d146-d968-beb7988431ff@t-online.de \
--to=felix.weilbach@t-online.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).