• Post Reply Bookmark Topic Watch Topic
  • New Topic

swt.widgets.Text support chinese characters?  RSS feed

 
Mark Hughes
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey im using a swt.widgets.Text, Text textfield which works grand for english, but if i try to enter a chinese symbol it appears as 2 small box shapes. Can anyone shed light on this issue??
 
Mark Hughes
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
or even if ye know whay SWT object, widget, contorl that could support chinese characters
 
Mark Hughes
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i changed the object from Text to StyledText which worked to display chinese symbols but then functions of java like string comparision failed to work correctly! story continues
 
Mark Hughes
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
styletext appends a \n to the submitted string which is why string methods act strange, i wonder can that be stopped?
 
Mark Hughes
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
actually works grand thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!