3

Few months ago i was trying to move old php4 and iso8859-2 based system on php5 and utf8 encoding. Everything works good but now need to finally run this new version and the problem is that in the past months in the old system some changes ware been made and i need to have actual version on this php5 based system.
I wanted to compare those two systems with KDiff3 but, because of encoding diffs he told me that there are 2300 differences.
The best solutions would be to use some tool to compare without this encoding changes.
Is there a tool to compare two different encoded files like their ware the same encoding?

Sorry if my post is confusing but i've tried to explain as simply as i see it.

tchrist
  • 78,834
  • 30
  • 123
  • 180
Adam Szmyd
  • 2,765
  • 2
  • 24
  • 32

3 Answers3

2

It works in in Beyond Compare 4.0 if you uncheck the "Compare file size" checkbox and use "Rules-based comparison" in the Session Settings.

derFunk
  • 1,587
  • 2
  • 20
  • 31
1

You don’t. You upgrade the legacy encoding to UTF-8 and then compare those.

tchrist
  • 78,834
  • 30
  • 123
  • 180
  • 1
    indeed, and any correct visual diff tool will do that internally, at most with just a selection of the right encoding on the old folder (UTF8 is quite easy to detect) – armel Apr 05 '13 at 06:50
0

Our product, Beyond Compare, can compare files with different character encodings and will ignore those differences. It will even automatically detect different encodings, so it should work out of the box.

Zoë Peterson
  • 13,094
  • 2
  • 44
  • 64
  • How can I set BeyondCompare to use Latin1 or iso-8859-1 – sixtyfootersdude Nov 11 '15 at 20:01
  • @sixtyfootersdude Just below each file's path edit is a panel with the file's last modified time, size, encoding, and line endings. If you click the one for the encoding (usually it'll say "ANSI"), there will be a dropdown to select a different encoding. If you want it to affect all files of a specific type, click the "Format" button on the toolbar and chance the "Encoding" combobox in the "Conversion" tab of the resulting dialog. There are some additional ways for special cases, but those would be easier to describe if you email support@scootersoftware.com. – Zoë Peterson Nov 11 '15 at 23:04