marimaf
marimaf

Reputation: 5410

Git: content of files not displaying non ASCII characters correctly

I have an Android project and I am using Git in Ubuntu.

I can commit my project just fine and read it correctly on github.com

But when I download it on Windows or Mac, I get some characters encoded differently (this for string in .java files for example, but not in strings.xml).

Researching I got to this stackoverflow question, which led me to this page: https://github.com/kblees/git/wiki. But here they only talk about file names being encoded differently and commit messages. What I need to know is how to fix the content of the files that are being downloaded to Windows and Mac

I'm assuming is due to something I need to set on Git.

Thanks for your help

Upvotes: 3

Views: 1096

Answers (1)

Chronial
Chronial

Reputation: 70673

Git does not touch the encoding of your files. The issues you are having are probably caused by your editors.

Upvotes: 4

Related Questions