From e23986a3f57ed42c159e80f517b6acc82c2cf594 Mon Sep 17 00:00:00 2001 From: juandresrodca Date: Wed, 24 Jun 2026 00:16:36 +0100 Subject: [PATCH] Fix #878: preserve umlauts/non-ASCII in reindex-user-profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set-Content defaulted to ANSI encoding, corrupting non-ASCII characters (ä, ö, ü, ñ) in the Department field before the JSON batch file was uploaded to the UPA bulk import job. Add -Encoding UTF8 so the import preserves the original characters. Co-Authored-By: Claude Opus 4.8 --- scripts/spo-request-pnp-reindex-user-profile/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/spo-request-pnp-reindex-user-profile/README.md b/scripts/spo-request-pnp-reindex-user-profile/README.md index 13cce738f..29c8d8b25 100644 --- a/scripts/spo-request-pnp-reindex-user-profile/README.md +++ b/scripts/spo-request-pnp-reindex-user-profile/README.md @@ -130,7 +130,7 @@ Request-PnPReindexUserProfile -url https://contoso.sharepoint.com/sites/IT -Docu $filename = "upa-batch-trigger"; - Set-Content -Path "$tempPath\$filename.txt" -value $json + Set-Content -Path "$tempPath\$filename.txt" -value $json -Encoding UTF8 Write-Output "Kicking off import job - Please be patient and allow for 4-24h before profiles are updates in search.`n`nDo NOT re-run because you are impatient!"