-2

I am talking about Design not Runtime. Is there a way to fix the Encoding and Character Sets issues? Example of messed up form title in Arabic below. Some French letters such as é show up like this too.


Update: Components stored in the DFM like this
Caption = #1575#1604#1593#1585#1576
are not affected (whether it's windows 7 or 10) and are displayed properly.
HMil
  • 47
  • 7
  • Wouldn't it make more sense to use a tool that supports international characters – David Heffernan May 05 '23 at 20:01
  • Such tools like Lazarus are slower and generate heavy and slow code. Also, this behavior is not present in Windows 7. – HMil May 05 '23 at 20:21
  • I thini fpc is a better compiler than d7 but in any case I was thinking of modern delphi – David Heffernan May 05 '23 at 21:04
  • 1
    Delphi 7 doesn't support Unicode (mostly). All of the Win32 APIs it uses under the hood are ANSI-based only. And Arabic doesn't play nice with ANSI. You can only use characters that are present in the user's ANSI locale at the OS layer. Otherwise, you would have to ditch the VCL (or at least hook into it) and use the Unicode-based Win32 APIs directly instead. – Remy Lebeau May 05 '23 at 21:05
  • I have tons of work-arounds, like you stated: ditching the VCL works. TNT Components help. But now I think I understand why Windows 10 now. Thanks. – HMil May 05 '23 at 21:18
  • Please [*do not* use (sole) images of code/data/errors](https://meta.stackoverflow.com/a/285557/3439404) in your [mcve]. Copy the actual text, paste it into the question, then format it as code. Please [edit] your question to provide a [mcve]. – JosefZ May 06 '23 at 14:08
  • Thank you for the comment but that's pretty much it. – HMil May 06 '23 at 16:51

2 Answers2

0

I fixed my problem by using TNT Components and writing a program that converts the strings in my DFM files using ord like this

 object l1: TLabel
      Left = 735
      Top = 0
      Width = 32
      Height = 33
      Align = alRight
      Alignment = taRightJustify
      Caption = #1575#1604#1593#1605#16


Delphi 7 doesn't support unicode. Delphi 2009 does. Delphi 2010 is the closest in feel to Delphi 7.

HMil
  • 47
  • 7
-2

I use Hyper-V virtual machine with Windows 7 for that...

saa178
  • 1