Error: Unsupported file encoding (Unicode Big Endian)

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.
This topic is 5 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
JaimeBou
Posts: 27
Last visit: Wed Jan 31, 2024 8:52 am
Has voted: 1 time

Error: Unsupported file encoding (Unicode Big Endian)

Post by JaimeBou »

To help you better we need some information from you.

*** Please fill in the fields below. If you leave fields empty or specify 'latest' rather than the actual version your answer will be delayed as we will be forced to ask you for this information. ***

Product, version and build:5.6.157
32 or 64 bit version of product:64
Operating system:windows 7
32 or 64 bit OS:64

*** Please add details and screenshots as needed below. ***

DO NOT POST SUBSCRIPTIONS, KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM

I am just trying to convert my code to an exe and I am receiving the following error:

------ Build started: ZebraRestGUI, Configuration: x64 ------
Packaging with SAPIEN PowerShell V5 Host (Windows Forms) x64
Adding C:\Users\lanwolf.BOUDACIOUS\Desktop\Scripts\Zebra\ZebraRestGUI.ps1
Error: Unsupported file encoding (Unicode Big Endian)

Not sure where to start on how to resolve this? Can you help?
User avatar
Alexander Riedel
Posts: 8488
Last visit: Mon Apr 15, 2024 3:28 pm
Answers: 20
Been upvoted: 37 times

Re: Error: Unsupported file encoding (Unicode Big Endian)

Post by Alexander Riedel »

Simple, change the encoding of the file. In PowerShell Studio, look at the status bar. It probably says UTF-16BE there (BE being Big Endian)
Change it to UTF-8 or UTF-16LE and it'll be fine.
Alexander Riedel
SAPIEN Technologies, Inc.
User avatar
JaimeBou
Posts: 27
Last visit: Wed Jan 31, 2024 8:52 am
Has voted: 1 time

Re: Error: Unsupported file encoding (Unicode Big Endian)

Post by JaimeBou »

Thank you sir! I appreciate your help!
This topic is 5 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.