UTF-8 in manifest in non-Unicode build |
Post Reply |
Author | ||
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
Posted: 07 June 2024 at 3:54am |
|
When I build my application exe and the XTToolkit DLL using Unicode everything works as expected. But I'm testing different language combinations to better understand what is going on. When I build both my application and the XTToolkit Pro using non-Unicode I have problems seeing e.g. simplified Chinese characters in my program. This is of cause expected. Then I set the manifest file for my exe to include the line:
This makes my exe using the MFC controls able to show the simplified Chinese characters correctly. However the controls used by the XTToolkit don't shot the text as UTF-8. See the example above, where a simple MFC dialog belonging to my exe shows the text correctly, but the XTPGrid display the same text incorrectly. So, what is the problem? How do I tell the XTToolkit DLL to use UTF-8? Do I need to set the same manifest for the XTPToolkit DLL I build? Do I need to set something like this?
Edit.... It seems that adding the manifest to the XTToolkit DLL does not make a difference ? But, enabling the "Beta: Use Unicode UTF-8 for worldwide language support" regional settings feature in Windows 10/11 solves the problem in the XTToolkit controls. So the question is then, how do I enable this programmatically or through a manifest for the XTToolkit DLL controls? Any Ideas?
|
||
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
||
cpede
Senior Member Joined: 13 August 2004 Location: Denmark Status: Offline Points: 668 |
Post Options
Thanks(0)
|
|
I think that the reason is:
From: https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page. Since XTToolkit uses a lot of DrawText GDI for custom drawings of items, controls etc. |
||
Product: Xtreme ToolkitPro (24.0.0)
Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++) |
||
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |