Sublime Forum

How to treat Windows registry files as text (U16LE encoding)

#1

Exported Windows registry files have a U16LEwithBOM encoding and treated as binary.

Is there a config to treat them as text instead and show diffs as usual?

1 Like

#2

Did you try this: https://git-scm.com/docs/gitattributes#_working_tree_encoding ?

2 Likes

#3

Thanks for the tip! This converts the file when it’s staged, but in the Modified files view in Sublime Merge (or in the untracked files view) it’s still shown as a binary, so there is no diff.

You can do a roundabout way by adding the changes and then seeing what they are and removing unneeded ones, but that’s rather unergonomic

1 Like