Answer the question
In order to leave comments, you need to log in
Java, Windows console, encodings?
I'm writing a GUI to work with ADB. When receiving a list of folders, all characters (Russian) are displayed "as needed". But when transferring the same characters (going to a subdirectory), I get the message "No such file ...". The output to the console of Russian characters in the best traditions of Windows is kryakozyabry.
Question 1: will everything be solved by converting (Unicode -> CP866) arguments before passing them to the process?
Question 2: Are there such pitfalls in other operating systems? As far as I know, in the same Linux, the console is unicode.
Answer the question
In order to leave comments, you need to log in
Question 1: will everything be solved by converting (Unicode -> CP866) arguments before passing them to the process?
Question 2: Are there such pitfalls in other operating systems? As far as I know, in the same Linux, the console is unicode.
you can try to convert the console to UTF8 with the chcp 65001 command
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question