• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
2

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

Community Beginner ,
Jul 25, 2023 Jul 25, 2023

Copy link to clipboard

Copied

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

TOPICS
SDK

Views

198

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Jul 25, 2023 Jul 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 fi

...

Votes

Translate

Translate
Contributor ,
Jul 25, 2023 Jul 25, 2023

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 25, 2023 Jul 25, 2023

Copy link to clipboard

Copied

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 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jul 25, 2023 Jul 25, 2023

Copy link to clipboard

Copied

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.

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 25, 2023 Jul 25, 2023

Copy link to clipboard

Copied

LATEST

Hello @Rahul_Rastogi 

Thank you, the solution was to change the Character encoding converter, the file Encoding was UTF8

 

Greetings

Oliver

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines