https://www.systanddeploy.com/2014/07/powershell-tip-convertto-html-with-css.html
If you try to create an HTML output which uses a specific CSS file, this output may not be correctly displayed using Google Chrome.
To resolve this issue you can try by just adding "-encoding ASCII" after "out-file", as below :
Out-File -encoding ASCII your file.html
![](https://1.bp.blogspot.com/-GLv4wTi_qsY/U9JXVIOupNI/AAAAAAAAAig/6wBXeh6SQuY/s1600/without_encoding.PNG) |
Without the -encoding ASCII parameter |
![](https://1.bp.blogspot.com/-ix-vmdpIX2k/U9JXU_UuJpI/AAAAAAAAAic/kyyjhx7WXTI/s1600/with_encoding.PNG) |
With the -encoding ASCII parameter |
Enregistrer un commentaire