php-diff
php-diff copied to clipboard
Support for diffing unicode characters
Hello! I found that this code cannot be used to diff between unicode characters. When trying to do that, the highlighted lines became blank. This issue can be fixed easily - Just use multibyte string function[1] instead of string function. Also, replace string indexing to mb_substr($str, $i, 1).
Cheers
Links [1] - http://php.net/manual/en/ref.mbstring.php
Thanks for the mb string hint. I added unicode support in JBlond/php-diff