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
When options.outputFile is specified, FileOutputStream is used for output.
This is ok.
However, when options.outputFile is not specified, System.out is used.
This is problem.
System.out is type of PrintStream!
PrintStream is encoding-aware!
So i guess jackson's JsonSerializer outputs json as UTF-16 in ja-JP locale by invoking PrintStream's encoding-aware methods.
thx.
The text was updated successfully, but these errors were encountered:
I see, it worked on my machine using ja-JP, that's why I closed it.
I can replace System.out with new PrintStream(System.out, true, StandardCharsets.UTF_8);and try again. I'll tag you in the PR to check it on your machine using git dependency so we're sure this time the issue is actually fixed.
I've upgraded to jni 0.9.0 and jnigen 0.9.0.
However, I've got same FormatException error as #877
I've investigated the issue and there is one more cause.
https://github.com/dart-lang/native/blob/95d226d290d4d5c583c4e45b04048442f244c656/pkgs/jnigen/java/src/main/java/com/github/dart_lang/jnigen/apisummarizer/Main.java#L63C1-L71C6
When options.outputFile is specified, FileOutputStream is used for output.
This is ok.
However, when options.outputFile is not specified, System.out is used.
This is problem.
System.out is type of PrintStream!
PrintStream is encoding-aware!
So i guess jackson's JsonSerializer outputs json as UTF-16 in ja-JP locale by invoking PrintStream's encoding-aware methods.
thx.
The text was updated successfully, but these errors were encountered: