I want to check if a string contains the restricted symbol (®). As of now, I'm doing it like this:
if(mystr.contains("®"))
{
//do stuff
}
This seems to work, but I really don't think using the restricted symbol in actual code is the best approach here. What is an alternative way to check if a string contains the restricted symbol?