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

Scripting 9118479514003836676

Enregistrer un commentaire

Accueil item


Join me soon

Join me soon

Endpoint Manager award

Mes articles en français

Author of Books

PowerShell GUI & WPF Group

PowerShell GUI & WPF Group

Join the FPSUGR

Join the FPSUGR