Skip to content

Fix: preserve non-ASCII characters in spo-request-pnp-reindex-user-profile (#878)#964

Open
juandresrodca wants to merge 1 commit into
pnp:mainfrom
juandresrodca:fix/878-reindex-user-profile-utf8
Open

Fix: preserve non-ASCII characters in spo-request-pnp-reindex-user-profile (#878)#964
juandresrodca wants to merge 1 commit into
pnp:mainfrom
juandresrodca:fix/878-reindex-user-profile-utf8

Conversation

@juandresrodca

Copy link
Copy Markdown

Summary

Fixes #878. The reindex script wrote its JSON batch file with Set-Content and no -Encoding, which defaults to ANSI on Windows PowerShell. Non-ASCII characters in the Department field were therefore corrupted before the file was uploaded to the UPA bulk-import job.

Change

Added -Encoding UTF8 to the Set-Content call so the import preserves the original characters.

This matches the fix validated by @DavorSukeri in the issue thread.

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 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scripts/spo-request-pnp-reindex-user-profile destroys umlauts

1 participant