-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnsupportedCharsetException: cp65001 with vs code #1474
Comments
Minimal way to reproduce this without vs code:
|
@epuni Thank you for raising this! It is likely that this is caused by a recent change in the 4.6.2 release (https://github.com/remkop/picocli/releases/tag/v4.6.2). |
Just tested 4.6.1 and it works as expected. |
Does anyone have any idea how to add a unit test for this? :-) |
I pushed a fix that should address this issue. Thank you again for raising this! (Ideas for unit testing this still welcome. 😅 ) |
I've just had the same problem in Cygwin with cp20127:
Downgrading to 4.6.1 fixed the problem. |
@Druckles Thank you for raising this! |
It is unclear whether this is a Cygwin issue, or what else is going on... (potentially related: rubygems/rubygems#4871, which mentions "Platforms ruby, x64-mingw32": also cygwin) Unclear how to remediate this in picocli (if we wanted to): what Java encoding should be used when system property (And for bookkeeping purposes, if further action is required, we need to create a new ticket.) |
I was trying out this library in an empty java + maven project in vs code on windows 10, upon running any simple application i get this:
The command line of the vs code java extension when launching as debug is the following:
The cause seems to be the default launcher.bat which does:
The only other reference to this problem is in #1457 but it's related to argument files while it's not the case here (at least i think, the argfile here seems to be used only for vm args).
The fix proposed in that PR doesn't work as the command line already includes
-Dfile.encoding=UTF-8
.I tried adding several options such as
-Dsun.stdout.encoding=UTF8 -Dsun.err.encoding=UTF8
to the vmargs and none worked, ultimately the the only workaround to get it working for me was changing code page to 850 (cmd's default one) in launcher.bat which is not desirable as it will be overwritten when the extension updates and i don't know if it may break other projects.Is there anything i'm missing ? Guess even if it's not a problem on your end it's worth noting it in the docs.
The text was updated successfully, but these errors were encountered: