Is there a comparison tool that can handle UTF-8 characters?

I am looking for a command line program (Windows) or a PHP library that can handle UTF-8 characters.

I searched for SO and I read the following questions:

but no luck.

Thanks for the help!

+4
source share
5 answers

In the end, I have prettydiff.com. This is not a PHP lib or program, but it works for what I need.

+2
source

How lucky ...

Our Smart Differencer tools handle a huge amount of input encodings. You can define the input encoding as an environment variable, so if you do a lot of comparisons, you can write a little script. (We are moving towards allowing this as a command line switch).

These tools are designed to compare computer langauges and are specific to langauge. There is a version specifically for comparing PHP programs.

If all you need is a simple diff diff, this will not be your tool. [This makes me consider a "trivial computer language" consisting of text strings, which this tool will do very well. I am going to build one of these (very simple with our machine) to see what it is. Keep in touch with this Bat channel.]

0
source

WinMerge can handle UTF-8 (you need to run the Unicode version of WinMergeU.exe)

0
source

The internal representation of ECMerge text is UTF8 (NB: I work for ECMerge). This is the ecmerge-cli command line tool (on Windows, ecmerge --cli on Unixes). Calling it from PHP should be as simple as any other command line tool. It could be a script and print everything you need. Of course, it can generate HTML and XML error reports and patches from the shelf. It has been successfully implemented as a base for several diff services behind web servers.

0
source

Have you tried my favorite - after comparison ?

0
source

Source: https://habr.com/ru/post/1379623/


All Articles