This problem was hit when utf-8 encoded string was sent to Android emulator
and Android could not correctly display the message.

 

Basically, when using <s:text name= "message"/> tag to output message from
utf-8 encoded properties file, it right output hexadecimal utf-8 encoded
message (in the form of, for example, "\u7ea6\u514b\u5C0f") and all clients,
whether being browser or not, can handle this, including Android. 

 

But when using <s:property value="message"/> (or another tag such as
iterator), the utf-8 encoded message will always be output in the form of
decimal Unicode, such as: "&#32422;&#20811;&#23567;" This causes no problem
for browser. But when it comes to Android's usual text rendering, the
Android only output the original string, e.g.  "&#32422;&#20811;&#23567;". 

 

Seems to me to turn decimal utf-8 into hexadecimal one on Android needs to
write a function, which causes performance drop. 

 

I was just wondering if there is any rather direct way to correct this or
shall I file it as bug?

 

Thanks for your attention, 

 

Qunhuan

Reply via email to