browser-sync: Charset problem
I’m having problems with charset, naturally the codes in .aspx need (and I don’t know ecxacly why) the ISO-8859-1. Prints someting like this: *capacita��o de *
browserSync: {
geral: {
bsFiles: {
src: [
'**/*.html',
'**/*.css',
'**/*.min.js',
'**/*.aspx',
'**/*.master',
'**/*.ashx'
]
},
options: {
watchTask: true,
startPath: "/default.aspx",
proxy: config.host + ':' + config.port,
notify: false,
open: false
}
}
},
With aspx, ours programmers insert the content of news, in web.config I found this. http://prntscr.com/7eitat
But if i change the value of charset here, nothing more works.
About this issue
- Original URL
- State: open
- Created 9 years ago
- Reactions: 5
- Comments: 15 (1 by maintainers)
Fixed version. Tested node v17.9.0.
Based on @kokarn’s and @youngzhaosignifyd’s examples and with the help of iconv-lite, plus using proxyRes option I am successfully using this script: