Skip to content

Commit

Permalink
Fixed issue with file encoding in convert function
Browse files Browse the repository at this point in the history
  • Loading branch information
ykuijs committed Jul 3, 2024
1 parent 251abb4 commit 859ffda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fixed issue in Convert-M365DSCExportToPowerShellDataFile where the created data file
was in ASCII format, causing special characters to be displayed incorrectly.

## [0.2.11] - 2024-06-19

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function Convert-M365DSCExportToPowerShellDataFile
# Check if data is available
if ($Obj_Result.NonNodeData.$Workload)
{
$Obj_Result | ConvertTo-Expression -Depth 20 -Expand 20 | Out-File $Path_CompositeConfig -Force -Confirm:$false -Encoding ascii
$Obj_Result | ConvertTo-Expression -Depth 20 -Expand 20 | Out-File $Path_CompositeConfig -Force -Confirm:$false -Encoding UTF8
'Result Composite config created: {0}' -f $Path_CompositeConfig | Write-Log
}
else
Expand Down

0 comments on commit 859ffda

Please sign in to comment.