diff --git a/Modules/CIPPCore/Public/GraphHelper/Read-JwtAccessDetails.ps1 b/Modules/CIPPCore/Public/GraphHelper/Read-JwtAccessDetails.ps1 index 1fa4b612af40..ced968960b4b 100644 --- a/Modules/CIPPCore/Public/GraphHelper/Read-JwtAccessDetails.ps1 +++ b/Modules/CIPPCore/Public/GraphHelper/Read-JwtAccessDetails.ps1 @@ -32,7 +32,7 @@ function Read-JwtAccessDetails { # Convert base64 to json to object $tokenByteArray = [System.Convert]::FromBase64String($tokenPayload) - $tokenArray = [System.Text.Encoding]::ASCII.GetString($tokenByteArray) + $tokenArray = [System.Text.Encoding]::UTF8.GetString($tokenByteArray) $TokenObj = $tokenArray | ConvertFrom-Json # Convert token details to human readable