The mbwidth() function itself checks whether UTF-8 is being used and does the right thing.
Attach a file by drag & drop or click to upload