File gfxlatin2.h
File List > display > gfxlatin2.h
Go to the documentation of this file.
/*
* Converting UTF-8 encoded strings to GFX Latin 2 encoded strings
*
* The GFX Latin 2 encoding is described in
* https://sigmdel.ca/michel/program/misc/gfxfont_8bit_en.html#latin-x
*
*
* To display the converted string, an Adafruit GFXfont containing the 192
* printable ISO 8859-15 characters corresponding to the GFX Latin 2 character
* set must be used. See fontconvert8 to obtain such a font from TTF fonts
* https://sigmdel.ca/michel/program/misc/gfxfont_8bit_en.html#fontconvert8
*
*/
#ifndef GFXLATIN2_H
#define GFXLATIN2_H
// Convert a UTF-8 encoded String object to a GFX Latin 1 encoded String
String utf8tocp(String s);
// Convert a UTF-8 encoded string to a GFX Latin 9 encoded string
// Be careful, the in-situ conversion will "destroy" the UTF-8 string s.
void utf8tocp(char* s);
#endif