recently i face with the difficulties on how to display the chinese character??
b4 that, i used to convert chinese character to utf-8 code to enabe that computer can read the input data..
but there have no display of chinese character as my expected output...wat is the exact problem?
The chinese charater that suppose to be displayed is like that "李大伟"(chinese char) for "\xE6\x9D\x8E"(utf-8 code)
Is it GUI_Font16_1HK a proportional font that used to display the chinese character?
but i found that it will have compile error which is the GUI_Font16_1HK is undefined...
How to be sure that GUI_Font16_1HK is defined properly while i have defined it in GUI.h already??
....
....
#include "GUI.h"
static const char * _apStrings[] = {
"Chinese:",
"\xE6\x9D\x8E",
};
void MainTask(void) {
int i;
GUI_Init();
GUI_SetFont(&GUI_Font16_1HK);
GUI_UC_SetEncodeUTF8();
for (i = 0; i < GUI_COUNTOF(_apStrings); i++) {
GUI_DispString(_apStrings[i]);
GUI_DispNextLine();
}
while(1) {
GUI_Delay(500);
}
}
......
......
This post has been edited by goolie: Jul 20 2007, 05:41 PM
embedded C programming, any1 know bout GUI_Font16_1HK ??
Jul 20 2007, 05:40 PM, updated 19y ago
Quote

0.0221sec
0.92
5 queries
GZIP Disabled