Encoding issue with JLine
问题 Jline is a module for intercepting user input at a console before the user presses Enter . It uses JNA or similar wizardry. I'm doing a few experiments with it and I'm getting encoding problems when I input more "exotic" Unicode characters. The OS here is W10 and I'm using Cygwin. Also this is in Groovy but should be obvious to Java people. def terminal = org.jline.terminal.TerminalBuilder.builder().jna( true ).system( true ).build() terminal.enterRawMode() // NB the Terminal I get is class