u8glib Problems with special characters how to print äöü

If I try to print special caracters on my lcd I get only strange signs.

my code

u8g.setFont(u8g_font_unifont);
u8g.setColorIndex(1);
u8g.setPrintPos(40, 40);
u8g.print(" ä Ä ö Ö ü Ü ß");

how can I print this signs ? insert ascii code (252) in a word e.g. ("zurück").

thank you for your help

Loupo

Most displays have the possibility of uploading a few special characters. In the Liquid Crystal Library look up CreateChar. You have to fill an array with the bit pattern and load the pattern using the CreateChar function.

Hi

What exactly do you see? Is there a "Ã" at the beginning of the strange signs? If yes, then I think this is a problem of the IDE: The Arduino IDE stores special glyphs like your "Umlaut" characters as utf8 sequence.

Typing "Ä" in the IDE becomes the sequence 0xc3 0x084, where 0x0c3 is the above mentioned "Ã". See also: http://www.utf8-zeichentabelle.de/.

Conclusion: U8glib expects a codepage according to iso-8859-1, but the Arduino IDE uses utf8. I do not know if it is possible to change the Arduino IDE so that iso-8859-1 is used.

The most portabe solution seems to use string escape sequences in your code. These escape sequences are handled by the C-Compiler:
u8g.print("zurück");
must be typed as
u8g.print("zur" "\xfc" "ck")
where the escape sequence \xfc is translated to the hex code $FC which is the "ü" in the unicode font:

Grüße, Oliver

Thank you for your help,
I found the integer value of ü =(about) -15428 and in a char ü was handled as 2 signs.

A work around can be

char MyChar1[] = {'Z', 'u', 'r', 252, 'c', 'k'}; (= Zurrück)

Problem slowed. I am just edit Arduino IDE source and add change encoding function in code preprocessor. BDF must be encoded with same encoding and converted to C src(I am use FontForge). Then you can type strings in IDE "as is" - IDE convert it encoding before compiling.
Fast ide upgrade with replase of /lib/pde.jar. I am compile it for myself to get use u8glib with cyrillic simply and fastly. If you need edited src contact with me.