How can I pass encoding UTF-8 to the Javac compiler in maven? Here is my code:
Assert.assertTrue(CollectionWidjet.getColPickerListWrapperList(i).getListSpan().getText().trim().equalsIgnoreCase(data.getCollections().get(i).getName().trim()));
This is run over a list of input. Basically when it's a non-Unicode character like Hindi/Chinese it fails.
In normal javac compiler here is how it would get compiled:
javac -encoding UTF-8 MainClass.java