problems with textarea: can't display multiple lines show with chinese

9 messages - 210 views

problems with textarea:

 

The textarea can't display multiple lines show with chinese...

Could you give us a ScreenShot ?

xml:

 

Is this your screenshots ?

yes

I can't see anythink else than a redirection to baidu . com.

xml: 

 

private void splitWords(String fullText, int style) {

int beginIndex = 0;

int endIndex = 0;

String word;

do {

endIndex = fullText.indexOf(' ', beginIndex);

if (endIndex == -1) {

word = fullText.substring(beginIndex);

} else {

word = fullText.substring(beginIndex, endIndex);

}

if (word.length() != 0) {

Text textWidget = new Text();

textWidget.setText(word);

if (style != Font.STYLE_PLAIN) {

textWidget.setDefaultFontStyle(style);

}

add(textWidget);

}

beginIndex = endIndex + 1;

} while (endIndex  != -1);

}

 

In English, each word in the sentence was divided by the blank.

but the Chinese is not.

eg: 广东省是中国的一个省份,是经济大省。

Using this method, just divide a Text.

so The textarea can't display multiple lines show with chinese.

Ok, the problem comes from the lack of space separator. I will open a ticket for that.