How to solve Chinese characters garbled!

xiaoxiao2021-03-06  24

Since the Symbianos operating system is unified unicode, we will change the resource file to Chinese, but how do we solve it?

In fact, it is very simple. We just want to convert Chinese in the resource file into UTF8 with Word or IE, plus character_set utf8 is OK, as follows:

---------------- The original code is as follows: ----------------

#include

#include "my.hrh"

#include "my.loc"

#include

#include

#include

Resource CBA R_SoftKeys_login_Exit

{

Buttons =

{

CBA_BUTTON

{

ID = EaknsoftKeylogin;

TXT = "Login";

}

CBA_BUTTON

{

ID = EaknsoftKeyback;

TXT = "Exit";

}

}

}

------------- After the conversion: --------------

Character_set UTF8

Name AWIZ

// incrudes

#include

#include "my.hrh"

#include "my.loc"

#include

#include

#include

Resource CBA R_SoftKeys_login_Exit

{

Buttons =

{

CBA_BUTTON

{

ID = EaknsoftKeylogin;

TXT = "锏 綍"; // UTF8

}

CBA_BUTTON

{

ID = EaknsoftKeyback;

TXT = "阃 € €?; // UTF8

}

}

}

Since the Symbianos operating system is unified unicode, we will change the resource file to Chinese, but how do we solve it?

In fact, it is very simple. We just want to convert Chinese in the resource file into UTF8 with Word or IE, plus character_set utf8 is OK, as follows:

---------------- The original code is as follows: ----------------

#include

#include "my.hrh"

#include "my.loc"

#include

#include

#include

Resource CBA R_SoftKeys_login_Exit

{

Buttons =

{

CBA_BUTTON

{

ID = EaknsoftKeylogin;

TXT = "Login";

}

CBA_BUTTON

{

ID = EaknsoftKeyback;

TXT = "Exit";

}

}

}

------------- After the conversion: --------------

Character_set UTF8

Name AWIZ

// incrudes

#include

#include "my.hrh"

#include "my.loc"

#include

#include

#include

Resource CBA R_SoftKeys_login_Exit

{

Buttons =

{

CBA_BUTTON

{

ID = EaknsoftKeylogin;

TXT = "锏 綍"; // UTF8},

CBA_BUTTON

{

ID = EaknsoftKeyback;

TXT = "阃 € €?; // UTF8

}

}

}

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

New Post(0)