mhayashi1120 / Emacs-langtool

LanguageTool for Emacs
GNU General Public License v3.0
377 stars 31 forks source link

"Unsupported Encoding Exception" problem #49

Closed rsuzuki0 closed 4 years ago

rsuzuki0 commented 4 years ago

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?

rsuzuki0 commented 4 years ago

Thanks! The new version runs on Mew's draft buffer.