Skip to main content
Participant
July 25, 2023
Answered

How to deal with German special characters (Umlaute ÄÖÜ)

  • July 25, 2023
  • 1 reply
  • 1429 views

Hello,

after building the WFP sample from the sdk i implemented a germ anlocalization. It works so far but it displays the German umlaut ü as A1/4. Is there a way to change the encoding. I assume it is ascii.

 

Thanks in advance.

Greetings

Oliver

This topic has been closed for replies.
Correct answer Rahul_Rastogi

I am also using the same for Mac and it works correctly.

 

Did you set the File Encoding to ANSI.

 

You may download NotePad++ and check your file encoding.

 

You could also try the following -

 

For the below code snippet, make your file encoding must be UTF8. (Validate this from NotePad++).

 

resource StringTable (kSDKDefStringsResourceID +  index_deDE)
{
k_deDE, // Locale Id
kResourceUTF8Encoded, // Character encoding converter
{

kMyKeyStringKey,   "My String",

}

 

Also make sure, XCode is not changing your file encoding.

 

1 reply

Inspiring
July 25, 2023

Hi @ReviloF#67 ,

 

For German Locale, I have been using the following encoding for many years and it works perfectly well -

 

File encoding is set to ANSI.

 

resource StringTable (kSDKDefStringsResourceID + index_deDE)
{
k_deDE, // Locale Id
kEuropeanWinToMacEncodingConverter, 
{

kMyKeyStringKey,   "My String",

}

 

 

- Rahul Rastogi

Adobe InDesign C++ Plugins Architect

Participant
July 25, 2023

Hi Rahul Rastogi,

thank you for the answer, i use the same code as you describe but if i use"Müller" instead of "My String" the dropdownlist shows A1/4 instead of "ü" and this is not correct.

forgot to say that i develop on a Mac maybe thats the problem.

 

Oliver 

Rahul_RastogiCorrect answer
Inspiring
July 25, 2023

I am also using the same for Mac and it works correctly.

 

Did you set the File Encoding to ANSI.

 

You may download NotePad++ and check your file encoding.

 

You could also try the following -

 

For the below code snippet, make your file encoding must be UTF8. (Validate this from NotePad++).

 

resource StringTable (kSDKDefStringsResourceID +  index_deDE)
{
k_deDE, // Locale Id
kResourceUTF8Encoded, // Character encoding converter
{

kMyKeyStringKey,   "My String",

}

 

Also make sure, XCode is not changing your file encoding.