I have been busy with your diary for a long time. The first time I have encountered a lot of difficulties with Symbian C , and there are many enthusiastic people on the Internet, especially the rivers and lake sea MM and the wind. Write help to display a long string, if you use Litral or TBUFC is not appropriate, because constants and stacks should not be too big, so I chose HBUFC, a heap-based buffer can be assigned or destroyed at any time. I will put the helpful text string into the .rss file, and convert these text to the UTF8 encoding format, and then add the character_set utf8 in the .rss file, the character_set indicates what character set to define (specifically refer to the document) Resource file format .rss). EG: example.rs .... character_set utf8 ..... resource tbuf text_test {buf = "瀵 瀵 澶氲 呮湅 呮湅 鍙嬭 € █, 鐜 ╂ ╂ 鎴忔 鎴忔 朵 护 剦蹇 ";} // BUF in the UTF8 format ... Finally, it can be read in the program. EG: EXAMPLECONTAINER.CPP INCLUDE
..... hbufc * string = ieikonenv-> allocreadresource (gc.usefont); gc.SETPENCOLOR (TRGB (0xccff33)); gc.drawtext (* String, Tpoint (0, 20))); ..... You can display Chinese on the screen.