Encoding of .pas files

This week I would like to talk about the encoding of .pas files. Normally they are ANSI encoded which is no problem since all Delphi statements are ASCII encoded. But the exception are comments. Many developers overlook this issue, but they write comments in their native language and then it can happen that their are non-ASCII chars like German umlauts. In this case it is necessary to encode the source files in UTF8. Be careful, look at your comments or simply always encode the sources in UTF8.

This entry was posted in C++-Builder, Delphi, RAD Studio 10 Seattle, RAD Studio 10.1 Berlin, RAD Studio 10.2 Tokyo, RAD Studio 10.3 Rio, RAD Studio 10.4 Sydney, RAD Studio XE5, RAD Studio XE6, RAD Studio XE7, RAD Studio XE8, Tips and Tricks, Uncategorized. Bookmark the permalink.