symbian列表中文显示
控件列表的文本项设置为:
RESOURCE ARRAY r_list_array
{
items =
{
LBUF { txt = "1\tTuesday\t\t"; },
LBUF { txt = "1\tTuesday\t\t"; },
LBUF { txt = "1\tWednesday\t\t"; },
LBUF { txt = "1\tThursday\t\t"; },
LBUF { txt = "1\tFriday\t\t"; },
LBUF { txt = "1\tSaturday\t\t"; },
LBUF { txt = "1\tSunday\t\t"; }
};
}
这是英文显示,中文显示怎么弄?求助!!
[解决办法]
看看我的日志可以解决中文显示乱码的问题:http://user.qzone.qq.com/52603989/infocenter
[解决办法]
把中文转成unicode码显示,
[解决办法]
直接使用16进制:如“中国”写成“\x4E2D\x56FD”
[解决办法]
例子:
rss文件中定义
RESOURCE ARRAYr_ssq_array
{
items =
{
LBUF {txt = qtn_get_period;},
LBUF {txt = qtn_get_closedate;},
LBUF {txt = qtn_red_num;},
LBUF {txt = qtn_blue_num;},
LBUF {txt = qtn_multiple;},
LBUF {txt = qtn_zhuihao;},
LBUF {txt = qtn_stop_zhuihao;},
LBUF {txt = qtn_autoselect;},
LBUF {txt = qtn_reset_key;}
};
}
然后在rls文件中起始处加入字符串CHARACTER_SET UTF8,在carbide里把rls文件保存成utf8格式;
然后定义中文文本即可。
#define qtn_get_period"正在获取彩票期号..."
#define qtn_get_closedate"正在获取截止日期..."
#define qtn_red_num"红球(请选6-33个):"