gulp-replace
gulp-replace copied to clipboard
After use will appear garbled phenomenon, I used the UTF-8 code
I use for aspx to replace js url,After use will appear garbled phenomenon, I used the UTF-8 code,can it selected encoded ?
i open this file cope is no Garbled
,but in online is Garbled
,
Following my solutions use text open this file save as
selectd utf-8
and all file *
,this test is OK.But if the file more than 5, the operation is not convenient
I test html
is no Garbled
, Garbled
only aspx
.
Same issue here.
Can one of you please create a repository with relevant source files, package.json, and gulpfile so we can reproduce this and fix it?
Thanks!
The root cause is that the current version of vinyl-fs doesn't support non-UTF-8 encodings. https://github.com/wearefractal/vinyl-fs/issues/23
I'm seeing garbled output too.
Would accept a PR updating vinyl-fs
to 3.x and passing encoding