Changed default Output Encoding

Changed default Output Encoding for better readable log file
pull/12/head
Romain 2022-02-22 17:09:21 +01:00 committed by GitHub
parent 8fc4b5ecb6
commit 75ff069e37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ function Init {
$Log | Write-host
try{
#Logs initialisation
[Console]::OutputEncoding = [System.Text.Encoding]::UTF8
$LogPath = "$WorkingDir\logs"
if (!(Test-Path $LogPath)){
New-Item -ItemType Directory -Force -Path $LogPath