I am facing a problem during assertion of chinese text trying to Change language on the application from English to chinese and assert the text displayed
I am using Cucumber + Testng +Selenium + java+ Intellij
But the asserting is failing.. Added the screenshot below

@Then("Verify all the content is working as expected {string}")
public void verifyAllTheContentIsWorkingAsExpected(String language) {
Assert.assertEquals(new Login().getTextLoginType("Email"),"电子邮件");
I have already checked UFT-8 and tried other solutions found in here.. it is giving the same error.. Please help on how to fix this
getTextLoginType("Email")? That's where the wrongly encoded text comes from so you should check that code. Also please read stackoverflow.com/help/how-to-ask right now none can help you because your question is missing the info needed for a good answer.