But you should know, that this does not work for every unicode character and may show some odd results.
1
axiac
On
Use mb_convert_encoding() to bring both strings to the same multi-byte encoding (utf-8 or the one of $str2) then you can compare them as usual, using ==
2
AudioBubble
On
strlen(); Will return the number of bytes in a string. Your question is somewhat unclear, however.
You are looking for transliteration. You can use iconv:
But you should know, that this does not work for every unicode character and may show some odd results.