Sendkey("אלי") aPPIUM ANDROID


#1

How can i sends key on appium android with non english chars i got “???”

I type:
dc.setCapability(AndroidMobileCapabilityType.RESET_KEYBOARD,“true”);
dc.setCapability(AndroidMobileCapabilityType.UNICODE_KEYBOARD,“true”);

final Charset UTF_8 = Charset.forName(“UTF-8”);
final Charset ISO = Charset.forName(“ISO-8859-1”)

String value= new String(str.getBytes(ISO),UTF_8);
driver.findElement(By.xpath("//*[@id=‘DocName’]")).sendKeys(value);

expected value on the EditText :
“אלי”
output actual
“???”


#2

UiAutomator2 and Espresso should be able to sendKeys with unicode chars out of the box without additional capabilities.