0

I had some files in Overleaf (a git-based online editor) that had certain characters that made the files look binary. Once the git files are binary, they are not editable online in Overleaf. I took out those characters, so the files should be straight text, but the files are still not editable in Overleaf, probably because git is still treating them as binary.

How do I mark them as "not binary" so I can edit them in Overleaf again?

EDIT: Hmm, maybe there is no way, because revisions have binary characters.

dfrankow
  • 20,191
  • 41
  • 152
  • 214
  • All characters are binary. This must not ruin the day if Overleaf is not overreaching. – hakre Jul 10 '21 at 20:00
  • Files are just streams of bytes. It's up to the consumer to decide if those bytes represent a text encoding or not. – chepner Jul 10 '21 at 21:27
  • Are you on Windows? Are you using an encoding other than UTF-8, such as UTF-16? – bk2204 Jul 11 '21 at 00:36

1 Answers1

1

I have no clue for Overleaf, but it normally works with the .gitattributes and there is a binary macro so you can use it:

file.ext -binary

More special interest references:

hakre
  • 193,403
  • 52
  • 435
  • 836