Chinese display problem with SymbianSeries 60 development

xiaoxiao2021-03-19  234

This problem has been working for a long time, learning Symbian can't make Chinese exactly, which makes us Chinese people very uncomfortable, study and find out the following methods, possessing, sharing, 嘻嘻.

When I found SDK, I found that our Chinese display is best placed in the .loc localization file, then we will call the corresponding text constant in the .RSS resource file, which helps the language internationalization, although this However, we write Chinese content after the .loc file, compile the generation and execute the program or display Chinese as garbled, because Symbian requires us to save our Chinese text as a .loc file in the form of UTF8 to display correctly, So, as long as we write a .loc file containing Chinese text, we will save this file as a UTF8 encoded file, I use vs.net 2003, so I chose to save as -> Code Save - > UTF8 After saving this format file, we use ordinary text to edit the Chinese text as garbled, rest assured, this is fine, open us with IDE. Not enough, we have to join a set character set command "Character_set Utf8" (note, no quotation marks) in two.rss files (note, no quotation marks) add this "character_set utf8" to two.RSS files are located # Include instructions and resource definitions, two .RSS is the project name .RSS and project name _CAPTION.RSS

Finally compile the generated program, run with the simulator, is it to see Chinese, excitement. ^ __ ^ !!

Chaozhou Xintiandi Network Weng Pei

转载请注明原文地址:https://www.9cbs.com/read-130188.html

New Post(0)