开发者

How to set the code page of a Delphi 2006 executable

开发者 https://www.devze.com 2023-01-12 05:20 出处:网络
We\'re programming in Delphi 2006, using Multilizer 5.1 to translate the program. Now we\'ve to added Polish as a new language in Multilizer. But when we open our executable, Multlizer says \"Polish i

We're programming in Delphi 2006, using Multilizer 5.1 to translate the program. Now we've to added Polish as a new language in Multilizer. But when we open our executable, Multlizer says "Polish is not supported by the codep开发者_如何学编程age".

If we adjust our regional settings to Polish, whenever we open the executable, the regional settings flip back to the original setting, which is Dutch. Maybe we should set the CodePage setting in our Project Options, but the dropdown list does not give us any options.

Any ideas?


So it turns out we only had to set the Language for non-Unicode programs in the Regional and Language Options in Control Panel. The bad news is that the French version is now having the same problem.


If you want your application to support all possible language regardless of the Regional and Language Options on the user's computer, you'll need to migrate your application to Delphi 2009 or later. Starting with Delphi 2009, Delphi produces Unicode applications. It'll likely take some effort to fix any code that assumes that SizeOf(Char) = 1. But that one-time job should be much less effort than constantly having to deal with code page issues in your Delphi 2006 application.

0

精彩评论

暂无评论...
验证码 换一张
取 消