1. John Fauss
  2. Beta Testing
  3. Tuesday, 19 November 2024 02:51 AM UTC

In testing PB 2025 Beta2, I've noticed that the object source files that are created during the migration to a PB Solution, as well as the new .pbsln and .pbproj files use UTF-8 encoding, and this greatly surprises me... since PB uses Unicode 16LE encoding internally, I would've thought that the source files would be created with the same encoding schema. Thankfully, the files are all created with a Byte Order Marker (BOM), so the UTF-8 encoding can be easily identified.

Why was UTF-8 encoding chosen?

Who is viewing this page
Accepted Answer
Peter Pang @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 19 November 2024 03:19 AM UTC
  2. Beta Testing
  3. # Permalink

Hi John,

Since the compiler only supports UTF-8 format, and UTF-8 is more space-efficient.

Best Regards,
Peter

Comment
  1. John Fauss
  2. Tuesday, 19 November 2024 05:07 AM UTC
Thank you for answering, Peter! I very much appreciate you taking the time to respond to my question.

One disadvantage of this is that it makes the process of retrofitting new or modified code and objects into prior versions considerably more difficult, particularly since it is not currently possible to export (or copy, since all objects are in source format) and import them into earlier versions. And yes, I know that migrating to a PB Solution is a one-way street - but when I have to continue to maintain a production version of an app in an earlier version, there are going to be times when I'll need to retrofit code from the newer Solution-based version back into the Workspace-based version. Removal of the export header and comments lines from every object when the app is migrated to a Solution makes it very difficult to do this.
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.