# How let git think UTF-16 file as text file

2 messages from 2009-02-02 to 2009-02-02. Participants: Frank Li, Pieter de Bie.
Thread: https://gitlist.dev/t/17494

## Frank Li, 2009-02-02 00:43

Subject: How let git think UTF-16 file as text file
Message-ID: <1976ea660902011643h379e41f1nd2f2c5f7b8d729f3@mail.gmail.com>
URL: https://gitlist.dev/e/1976ea660902011643h379e41f1nd2f2c5f7b8d729f3%40mail.gmail.com

```
VS project resource file and resource header file use UTF-16 as unicode.
Default git think it is binary file.
How to let git think it is text file.

```

## Pieter de Bie, 2009-02-02 00:50

Subject: Re: How let git think UTF-16 file as text file
Message-ID: <E9FE0F4D-8E6C-47D6-BA35-DDD739BD1AD6@ai.rug.nl>
URL: https://gitlist.dev/e/E9FE0F4D-8E6C-47D6-BA35-DDD739BD1AD6%40ai.rug.nl
In-Reply-To: <1976ea660902011643h379e41f1nd2f2c5f7b8d729f3@mail.gmail.com>

```

On 2 feb 2009, at 00:43, Frank Li wrote:

> VS project resource file and resource header file use UTF-16 as  
> unicode.
> Default git think it is binary file.
> How to let git think it is text file.

Perhaps something like

*vs diff crlf

in your .gitattributes file?

```
