Skip to content

[Bug] UTF-8 encoding in the converted file "Invoke-AppDeployToolkit.ps1" #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
regispicanco opened this issue Mar 11, 2025 · 0 comments
Open
3 tasks done
Labels
bug Something isn't working

Comments

@regispicanco
Copy link

Prerequisites

PSAppDeployToolkit.Tools version

0.2.3

PSAppDeployToolkit version

4.0.6

Describe the bug

When I use the "Convert-ADTDeployment" command to convert the file "Deploy-Application.ps1", which is encoded in UTF-8 with BOM, the output file "Invoke-AppDeployToolkit.ps1" is always generated with UTF-8 encoding, which causes accented characters to not be displayed correctly.

The converted file should have the same encoding as the file "Deploy-Application.ps1", which is UTF-8 with BOM

Steps to reproduce

  1. Convert-ADTDeployment -Path .\Deploy-Application.ps1

Environment data

OsName               : Microsoft Windows 11 Enterprise
OsOperatingSystemSKU : 48
OsArchitecture       : 64 bits
WindowsVersion       : 2009
WindowsProductName   : Windows 10 Pro
WindowsBuildLabEx    : 22621.1.amd64fre.ni_release.220506-1250
OsLanguage           : pt-BR
OsMuiLanguages       : {pt-BR}
KeyboardLayout       :
TimeZone             : (UTC-03:00) Brasília
HyperVisorPresent    : True
CsPartOfDomain       : True
CsPCSystemType       : Desktop

.NET SDK:
 Version:           9.0.101
 Commit:            eedb237549
 Workload version:  9.0.100-manifests.4a280210
 MSBuild version:   17.12.12+1cce77968

Ambiente de runtime:
 OS Name:     Windows
 OS Version:  10.0.22621
 OS Platform: Windows
 RID:         win-x64
 Base Path:   C:\Program Files\dotnet\sdk\9.0.101\

Cargas de trabalho do .NET instaladas:
Não há cargas de trabalho instaladas para exibir.
Configurado para usar loose manifests ao instalar novos manifestos.

Host:
  Version:      9.0.0
  Architecture: x64
  Commit:       9d5a6a9aa4

.NET SDKs installed:
  9.0.101 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 7.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 8.0.11 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 9.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
  Not set

global.json file:
  Not found
@regispicanco regispicanco added the bug Something isn't working label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant