"Unsupported Encoding Exception" problem
rsuzuki0 opened this issue · 1 comments
One of the most common scenario when I would use langtool within emacs is when writing an email. I use Mew for email. When I run Emacs-langtool on a mew draft bufer, I get the following error when the language is set to auto:
LanguageTool exited abnormally with code 1 (Exception in thread "main" java.io.UnsupportedEncodingException: compound-text)
When the language is set to en-US, I get an error saying that langtool expects en-US.
If I copy the same text (including the header lines) to a new buffer as plain text, langtool runs as expected. However, if I have to do that, it almost negates the purpose of this script.
Can the text be given to langtool as en-US and not as "compount-text" from langtool.el?
Thanks! The new version runs on Mew's draft buffer.