php-diff icon indicating copy to clipboard operation
php-diff copied to clipboard

Support for diffing unicode characters

Open nullzero opened this issue 11 years ago • 1 comments

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

nullzero avatar May 31 '13 21:05 nullzero

Thanks for the mb string hint. I added unicode support in JBlond/php-diff

JBlond avatar Feb 04 '15 14:02 JBlond