当前位置: 代码迷 >> Symbian >> symbian列表汉语言显示
  详细解决方案

symbian列表汉语言显示

热度:1102   发布时间:2016-04-25 02:28:59.0
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 ARRAY r_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格式;