Migrate from GitHub to SourceForge with this tool. Check out all of SourceForge's recent improvements.
Close

#1742 UTF-8 encoding shown as 65001

Branch_+_Trunk
closed-fixed
GUI (515)
5
2008-07-11
2008-07-07
Kimmo Varis
No

Current SVN trunk (r5572).

When HTML/XML file encoding detection is enabled, WinMerge shows encoding for UTF-8 file as 65001. While that is techincally correct, users have no idea that it means UTF-8.

To reproduce:
#1 enable Codepage/Detect HTML/XML file encoding option
#2 Compare two manual XML files

Expected: Statusbar shows encoding/codepage as UTF-8

Actual: Statusbar shows encoding as 65001

Discussion

  • Kimmo Varis

    Kimmo Varis - 2008-07-10

    Logged In: YES
    user_id=631874
    Originator: YES

    Simple fix. Must check if codepage number is 65001 before returning it from FileLocation.

    Attaching a patch.

    File Added: ShowUTF8ForCP65001.patch

     
  • Kimmo Varis

    Kimmo Varis - 2008-07-10
    • milestone: --> Branch_+_Trunk
    • assigned_to: nobody --> kimmov
     
  • Kimmo Varis

    Kimmo Varis - 2008-07-11
    • status: open --> closed-fixed
     
  • Kimmo Varis

    Kimmo Varis - 2008-07-11

    Logged In: YES
    user_id=631874
    Originator: YES

    Committed to SVN trunk:
    Completed: At revision: 5600

    Committed to 2.10 branch:
    Completed: At revision: 5601

     

Log in to post a comment.