Search code examples
delphiunicodetdbgrid

TDBGrid, character "ã" painted as ".." with certain regional settings


Using Delphi VCL's default TDBGrid, the ã character is displayed as "..".

This only happens under certain regional settings. For example, in Portuguese or English regional settings, it displays correctly.

In Arabic regional settings however, it gets replaced with "..".

Note that the dataset's field is Unicode, as can be seen in the screenshot's TDBEdit.

Any ideas what may be going on?

Edit: Reproducible using Delphi 10.3.1 and 10.4.2

enter image description here


Solution

  • it turned out to be a font problem...

    using MS Sans Serif, the character was being replaced with '..' only with specific regional settings.

    changing the font to Tahoma or other, the rendering was fine regardless of regional settings.