Diacritics in Powershell Dynamic Folder not working

In dynamic folders, with Powershell, diacritics don’t work on Windows.

How to reproduce :

  1. Create a dynamic folder with Powershell

  2. Add characters such as “éàùç”

  3. Reload dynamic folder

Running the script outside RoyalTS from a *.ps1 file in Powerrshell 5.1, it doesn’t seem to work if the file encoding is “UTF8”, but displays correctly with “UTF8 with BOM”.

Do you have a solution?

Thanks

Here’s the solution:

The problem comes from Powershell Classic (version 5.1).

Using Powershell Core, I no longer have problems with accents.

We need to change the PowerShell interpreter script to put the path to the PowerShell Core (pwsh):