{"action":"created","issue":{"url":"https://api.github.com/repos/chrisboulton/php-diff/issues/14","labels_url":"https://api.github.com/repos/chrisboulton/php-diff/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/chrisboulton/php-diff/issues/14/comments","events_url":"https://api.github.com/repos/chrisboulton/php-diff/issues/14/events","html_url":"https://github.com/chrisboulton/php-diff/issues/14","id":15015783,"number":14,"title":"Support for diffing unicode characters","user":{"login":"nullzero","id":685251,"avatar_url":"https://avatars.githubusercontent.com/u/685251?v=3","gravatar_id":"","url":"https://api.github.com/users/nullzero","html_url":"https://github.com/nullzero","followers_url":"https://api.github.com/users/nullzero/followers","following_url":"https://api.github.com/users/nullzero/following{/other_user}","gists_url":"https://api.github.com/users/nullzero/gists{/gist_id}","starred_url":"https://api.github.com/users/nullzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nullzero/subscriptions","organizations_url":"https://api.github.com/users/nullzero/orgs","repos_url":"https://api.github.com/users/nullzero/repos","events_url":"https://api.github.com/users/nullzero/events{/privacy}","received_events_url":"https://api.github.com/users/nullzero/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2013-05-31T21:52:10Z","updated_at":"2015-02-04T14:04:21Z","closed_at":null,"body":"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).\r\n\r\nCheers\r\n\r\nLinks\r\n[1] - http://php.net/manual/en/ref.mbstring.php"},"comment":{"url":"https://api.github.com/repos/chrisboulton/php-diff/issues/comments/72858901","html_url":"https://github.com/chrisboulton/php-diff/issues/14#issuecomment-72858901","issue_url":"https://api.github.com/repos/chrisboulton/php-diff/issues/14","id":72858901,"user":{"login":"JBlond","id":2391810,"avatar_url":"https://avatars.githubusercontent.com/u/2391810?v=3","gravatar_id":"","url":"https://api.github.com/users/JBlond","html_url":"https://github.com/JBlond","followers_url":"https://api.github.com/users/JBlond/followers","following_url":"https://api.github.com/users/JBlond/following{/other_user}","gists_url":"https://api.github.com/users/JBlond/gists{/gist_id}","starred_url":"https://api.github.com/users/JBlond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JBlond/subscriptions","organizations_url":"https://api.github.com/users/JBlond/orgs","repos_url":"https://api.github.com/users/JBlond/repos","events_url":"https://api.github.com/users/JBlond/events{/privacy}","received_events_url":"https://api.github.com/users/JBlond/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T14:04:21Z","updated_at":"2015-02-04T14:04:21Z","body":"Thanks for the mb string hint. I added unicode support in JBlond/php-diff"}}