Skip to content

Commit 921c78f

Browse files
committed
Change UTF-16 BOM to UTF-8
Fixes eligrey#219
1 parent 683f689 commit 921c78f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

FileSaver.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* FileSaver.js
22
* A saveAs() FileSaver implementation.
3-
* 1.1.20160328
3+
* 1.1.20160520
44
*
55
* By Eli Grey, http://eligrey.com
66
* License: MIT
@@ -85,7 +85,7 @@ var saveAs = saveAs || (function(view) {
8585
, auto_bom = function(blob) {
8686
// prepend BOM for UTF-8 XML and text/* types (including HTML)
8787
if (/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(blob.type)) {
88-
return new Blob(["\ufeff", blob], {type: blob.type});
88+
return new Blob(["\xEF\xBB\xBF", blob], {type: blob.type});
8989
}
9090
return blob;
9191
}

FileSaver.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright © 2015 [Eli Grey][1].
1+
Copyright © 2016 [Eli Grey][1].
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

0 commit comments

Comments
 (0)