Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Convert UTF-16 encoded files into UTF8 - #2346

Merged
ellismg merged 1 commit into
dotnet:masterfrom
ellismg:utf8
Jul 13, 2015
Merged

ellismg merged 1 commit into
dotnet:masterfrom
ellismg:utf8

Conversation

@ellismg

@ellismg ellismg commented Jul 13, 2015

Copy link
Copy Markdown
Contributor

UTF16 encoded files trip up both Git and GitHub since the huristic they
use to determine if a file is binary or not depends on the existence of
null bytes in a file, which is common in UTF-16 encoded source.

This converts all the UTF-16 encoded files into UTF-8 with an explicit
byte order marker.

UTF16 encoded files trip up both Git and GitHub since the huristic they
use to determine if a file is binary or not depends on the existence of
null bytes in a file, which is common in UTF-16 encoded source.

This converts all the UTF-16 encoded files into UTF-8 with an explicit
byte order marker.
@ellismg

ellismg commented Jul 13, 2015

Copy link
Copy Markdown
Contributor Author

The GitHub provided diff here is pretty terrible, since it believes the source files are binary. I had success locally using kdiff3 + git difftool -d. It shows the files and for each one tells me they are text equal but not binary equal.

@stephentoub

Copy link
Copy Markdown
Member

Thanks. The only other differences I saw were adding some newlines at the end of files. LGTM.

@akoeplinger

Copy link
Copy Markdown
Member

I assume this supersedes #1470?

@ellismg

ellismg commented Jul 13, 2015

Copy link
Copy Markdown
Contributor Author

Maybe? It was unclear if we landed on a BOM vs no BOM call, but this certainly gets us closer.

ellismg added a commit that referenced this pull request Jul 13, 2015
Convert UTF-16 encoded files into UTF8
@ellismg
ellismg merged commit 617c87a into dotnet:master Jul 13, 2015
@ellismg
ellismg deleted the utf8 branch July 13, 2015 23:55
@akoeplinger

Copy link
Copy Markdown
Member

Yep, thanks, I actually didn't care about BOM vs no BOM when I opened https://github.com/dotnet/corefx/issues/1339, so this is fine by me 👍

@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Convert UTF-16 encoded files into UTF8

Commit migrated from dotnet/corefx@617c87a
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants