You might have to do this manually or with a tool. Notepad will write utf-8
I think. You then have to have a program to translate that into a constant C
array. I depends what you are trying to accomplish. ROM resource files, or
some other kind of dunamic resource?
I'm trying to write a config file that has UTF-8 strings in it, and has
some hard-coded defaults.
Something along the lines of
char *array[6] {
"ABCDEFGHIJKLMNOPQRSTUVWXYZ",
"abcdefghijklmnopqrstuvxyz",
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvxyz",
"aábcÄdeéěfghiÃjklmnopqrÅ™sÅ¡tuúůvxyýzž",
"AÃBCÄŒDEÉFGHIÃJKLMNOÓPQRŘSÅ TUÚVWXYÃZŽ",
"aábcÄdeéěfghiÃjklmnopqrÅ™sÅ¡tuúůvxyýzžAÃBCÄŒDEÉFGHIÃJKLMNOÓPQRŘSÅ TUÚVWXYÃZ"
}
and then a file which, if it exists, would redefine array.
Is there a HOWTO somewhere that tells you how to work with UTF-8 strings
in C? I'm trying to do something very simple but it's frustrating since
I'm doing it completely blind.
Thanks,
--Kamus