Powershell Tip : ConvertTo-HTML with CSS not working correctly on Google Chrome

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

Without the -encoding ASCII parameter

With the -encoding ASCII parameter

Share this

Related Posts

Next Post »