PHP-FineDiff icon indicating copy to clipboard operation
PHP-FineDiff copied to clipboard

How to use finediff for chineese language?

Open mdegrees opened this issue 10 years ago • 3 comments

I've tried to use finediff for chineese language and it does not work, should i change the encoding? or use special php function?

Thank you !

mdegrees avatar Sep 10 '14 07:09 mdegrees

Hi, FineDiff works on a char to char bases so the encoding is important. Especially when you are using mulitbyte characters. Could you share a piece of code that doesn't work?

1emming avatar Sep 10 '14 08:09 1emming

Hi 1emming, thank you for the quick reply !

Please compare these two paragraphs (http://www.raymondhill.net/finediff/viewdiff-ex.php) to see an example of what's happening

根據相對論,信息的傳播速度有限,因此在某些情况下,例如在發生宇宙膨胀的情况下,距离我们非常遥远的区域中我們將只能收到一小部分区域的信息,其他部分的信息将永远无法传播到我们的区域。可以被我們觀測到的时空部分稱為“可觀測宇宙”、“可見宇宙”或“我們的宇宙”。應該強調的是,這是由於時空本身的结構造成的,與我們所用的觀測設備没有關係。


根據相對論,信息的傳播速度有限,因此在某些情况下,例如在發生宇宙膨胀的情况下,距离我们非常其他部分的信息将永远无法传播到我们的区域。可以被我們觀測到的时空部分稱為“可觀測宇宙”、“可見宇宙”或“我們的宇宙”。應該強調的是,這是由於時空本身的结構造成的,與我們所用的觀測設備没有關係。

Thank you !

mdegrees avatar Sep 10 '14 10:09 mdegrees

See this https://github.com/xrstf/PHP-FineDiff I used it for Farsi/Persian language and it works perfectly.

erfanatp avatar Aug 17 '15 19:08 erfanatp