Dropdown ListItem does not support strings with german characters like "Ä,ä,Ü,ü,Ö,ö and ß".

Dropdown ListItem does not support strings with german characters like "Ä,ä,Ü,ü,Ö,ö and ß".

manfred_weinert
Contributor Contributor
190 Views
2 Replies
Message 1 of 3

Dropdown ListItem does not support strings with german characters like "Ä,ä,Ü,ü,Ö,ö and ß".

manfred_weinert
Contributor
Contributor

It is easy to reproduce this issue.

Create the c++ "Command Input API sample" and run it.

DropDown- ListItem orginal.png

You will see the window above.

Now stop  the AddIn.

Modify line 384 of the c++ source Code from:

dropdown4Items->add("Item 1", true, "");

to:

dropdown4Items->add("Item 1 Länge", true, "");

Länge is the German translation of length.

Create a new dll for the AddIn and execute it.

DropDown- ListItem changed.png

You will see the window above. only an empty line is shown for the ListItem.

Can anybody help here?

 

Best regards

Manfred

 

 

0 Likes
Accepted solutions (2)
191 Views
2 Replies
Replies (2)
Message 2 of 3

MichaelT_123
Advisor
Advisor
Accepted solution

Hi Mr Manfred_Weinert

 

Check how Unicode characters are handled on Windows.

Keywords to check are:

  • Unicode
  • UTF-8
  • wchar_t vs char
  • std::wstring vs std::string
  • codepage

Regards

MichaelT

MichaelT
Message 3 of 3

manfred_weinert
Contributor
Contributor
Accepted solution

Hello Michael,

the issue was more depending on the incorrect setup of the development environment of Visual Studio 2022.

The following links helped me to fix the issue:

 

https://learn.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets...

 

https://learn.microsoft.com/en-us/visualstudio/ide/how-to-save-and-open-files-with-encoding?view=vs-...

 

Regards Manfred