Wrong encoding of compiled projects.

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
StormCS
Posts: 2
Meble kuchenne na zamówienie - na wymiar - Wrocław
Joined: Fri Sep 08, 2017 1:53 am

Wrong encoding of compiled projects.

Post by StormCS »

Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.175
OS: Windows 10 Enterprise (64 Bit)
Build: v10.0.18363.719

Hello, when compiling a project to executable, bad encoding is used :
encoding.png
encoding.png (9.84 KiB) Viewed 223 times
Encoding of files is set to UTF-8-BOM.

Please correct this problem.

User avatar
Alexander Riedel
Posts: 7344
Joined: Tue May 29, 2007 4:43 pm

Re: Wrong encoding of compiled projects.

Post by Alexander Riedel »

Can you provide some information? What packager engine are you using? For what PowerShell version.
When you "set to UTF-8-BOM", is that the default encoding from the options or the ACTUAL encoding of the file?
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
brittneyr
Site Admin
Posts: 432
Joined: Thu Jun 01, 2017 7:20 am

Re: Wrong encoding of compiled projects.

Post by brittneyr »

The default encoding in Options is for new script files, not existing ones:
SPS_DefaultEncoding.png
SPS_DefaultEncoding.png (44.6 KiB) Viewed 210 times
For existing files, all files of the project need to be opened, then the encoding from the status bar verified and if the encoding needed to be changed, save the file:
SPS_Encoding.png
SPS_Encoding.png (17.89 KiB) Viewed 210 times
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
StormCS
Posts: 2
Joined: Fri Sep 08, 2017 1:53 am

Re: Wrong encoding of compiled projects.

Post by StormCS »

After setting the default file encoding to UTF-8-BOM, it's ok.

Thanks