gulp-replace icon indicating copy to clipboard operation
gulp-replace copied to clipboard

After use will appear garbled phenomenon, I used the UTF-8 code

Open yyman001 opened this issue 9 years ago • 6 comments

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

yyman001 avatar Mar 12 '15 03:03 yyman001

I test html is no Garbled , Garbled only aspx.

yyman001 avatar Mar 12 '15 03:03 yyman001

Same issue here.

snemvalts avatar May 15 '15 15:05 snemvalts

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!

lazd avatar May 15 '15 15:05 lazd

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

shinnn avatar Jun 17 '15 08:06 shinnn

I'm seeing garbled output too.

ericnewton76 avatar Nov 21 '16 04:11 ericnewton76

Would accept a PR updating vinyl-fs to 3.x and passing encoding

lazd avatar Apr 22 '21 16:04 lazd