I have used adist to calculate the number of characters that differ between two strings:
adist
a <- \"Happy day\" b <- \"Tappy Pay\" adist(a,b)
Not really proud of this, but it seems to do the job:
sapply(setdiff(utf8ToInt(a), utf8ToInt(b)), intToUtf8)
Results:
[1] "H" "d"