You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
AddShortCut does not correctly handle non-ASCII characters in shortcut names in PhoenixPE #214
Here 命令提示字元 is just the Traditional Chinese translation for "Command Prompt".
Save the file, close the text editor, and returns to PhoenixPE.
Click the Execute button.
It seems that the shortcuts are not created immediately, instead they are recorded in <P>\Workbench\PhoenixPE\Target\Windows\System32\PhoenixPE.au3 and are created on the fly when booting the rescue iso. (<P> is the folder containing PhoenixPE).
Use a text editor to open <P>\Workbench\PhoenixPE\Target\Windows\System32\PhoenixPE.au3.
Go to the CreateShortcuts() function.
The last two lines correspond to the shortcuts I want to make.
The first is correct.
The second line reads MakeShortcut('%WinDir%\System32\cmd.exe', @StartMenuCommonDir & "\Programs" & '\Productivity\??????.lnk', '', '', '', '', '', 0, @SW_SHOWNORMAL), which is incorrect - it should not be six ? marks. It should be 命令提示字元.
So I would like to report that shortcut names containing non-ASCII characters are not correctly saved to <P>\Workbench\PhoenixPE\Target\Windows\System32\PhoenixPE.au3.
Confirmed. Thanks for reporting. The issue is caused by the fact that PhoenixPE.au3 is UTF8 without BOM and does not contain any wide characters (technically its 100% valid ANSI and UTF-8) so PEBakery's TextReplace command plays it safe and treats unmarked files as ANSI and applies the hosts codepage unless the file has a BOM or already contains unicode characters.
Activity
homes32 commentedon Dec 3, 2026
Confirmed. Thanks for reporting. The issue is caused by the fact that PhoenixPE.au3 is UTF8 without BOM and does not contain any wide characters (technically its 100% valid ANSI and UTF-8) so PEBakery's TextReplace command plays it safe and treats unmarked files as ANSI and applies the hosts codepage unless the file has a BOM or already contains unicode characters.