MSEndpointMgr / IntuneWin32App

Provides a set of functions to manage all aspects of Win32 apps in Microsoft Intune.
MIT License
345 stars 88 forks source link

Garbled characters in Japanese environment #34

Open hidemaruki opened 2 years ago

hidemaruki commented 2 years ago

Thank you for developing amazing tool!

If possible, I'm glad that you make this code support for double-byte character languages Intune_app1 .

hidemaruki commented 2 years ago

The garbled characters were resolved by adding a line to encode in UTF-8 before "POST" the json of the original source below. Is it possible to reflect this line in the source code? https://github.com/MSEndpointMgr/IntuneWin32App/blob/master/Private/Invoke-IntuneGraphRequest.ps1

$Body = [Text.Encoding]::UTF8.GetBytes($Body)

Double-byte character garbled measures

NickolajA commented 1 year ago

Sorry I've missed this one, does the issue still persist with the enhancements that were made in the latest 1.3.6 release related to encoding?

I'm referring to this from the release notes:

Private function Invoke-IntuneGraphRequest has been updated with UTF-8 encoding content type support. From this version and on, when the script file is properly encoded with UTF-8 with BOM, special characters should now work as expected.