I have a string that contains: ½
From my understand i belive this is \uFFFD
Can someone help me with why this syntax does not work:
if (promotions.getText().contains("\uFFFD")) {
return promotions;
}
I have a string that contains: ½
From my understand i belive this is \uFFFD
Can someone help me with why this syntax does not work:
if (promotions.getText().contains("\uFFFD")) {
return promotions;
}
½ is \u00BD
Therefore this should work
if (promotions.getText().contains("\u00BD")) {
Try this:
if (promotions.getText().contains("\u00BD"))
{
return promotions;
}