[Solved] How can i compare two words which contain unicode characters?


The most likely reason is that the default encoding for reading
from standard input (via Scanner) does not match what your operating system uses.

Note that the constructors for Scanner have an additional parameter String charsetName for the encoding type used to convert bytes from the file into characters to be scanned. Add the appropriate value which may vary between operating systems and installations.

solved How can i compare two words which contain unicode characters?