Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » linux copy-paste chinese to StyledText problem
linux copy-paste chinese to StyledText problem [message #453795] Sat, 09 April 2005 16:00 Go to next message
Chris Fong is currently offline Chris FongFriend
Messages: 19
Registered: July 2009
Junior Member
Hi all,

I'm having a weird problem when I try to run my RCP app on Linux (gentoo)
which doesn't occur on the windows version. When I try to copy and paste
chinese characters from my web browser to a StyledText widget in my app,
it pastes the character as its unicode string. ie. 你 turns into
\u4f60. However typing chinese into the StyledText and copy-pasting into
another StyledText works fine. As does pasting from browser to a Text
widget.

Easiest way to reproduce my problem. Use the RcpMail template and change
the Text widget in View.java to a StyledText. Then go to BBC chinese
http://news.bbc.co.uk/chinese/simp/hi/default.stm and try to paste some
chinese characters in.

Any ideas? Thanks.

Chris Fong
Re: linux copy-paste chinese to StyledText problem [message #453839 is a reply to message #453795] Mon, 11 April 2005 20:31 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Enter a bug report. Thanks.

"Chris F" <bogleg_20@yahoo.com> wrote in message
news:3434054505c2bd6b52ad0f373a90440f$1@www.eclipse.org...
> Hi all,
>
> I'm having a weird problem when I try to run my RCP app on Linux (gentoo)
> which doesn't occur on the windows version. When I try to copy and paste
> chinese characters from my web browser to a StyledText widget in my app,
> it pastes the character as its unicode string. ie. &#20320; turns into
> \u4f60. However typing chinese into the StyledText and copy-pasting into
> another StyledText works fine. As does pasting from browser to a Text
> widget.
>
> Easiest way to reproduce my problem. Use the RcpMail template and change
> the Text widget in View.java to a StyledText. Then go to BBC chinese
> http://news.bbc.co.uk/chinese/simp/hi/default.stm and try to paste some
> chinese characters in.
>
> Any ideas? Thanks.
>
> Chris Fong
>
>
>
Re: linux copy-paste chinese to StyledText problem [message #453847 is a reply to message #453839] Mon, 11 April 2005 23:26 Go to previous message
Chris Fong is currently offline Chris FongFriend
Messages: 19
Registered: July 2009
Junior Member
Thanks for the replying Steve. Bug report is here:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=91060

Chris Fong

Steve Northover wrote:

> Enter a bug report. Thanks.

> "Chris F" <bogleg_20@yahoo.com> wrote in message
> news:3434054505c2bd6b52ad0f373a90440f$1@www.eclipse.org...
>> Hi all,
>>
>> I'm having a weird problem when I try to run my RCP app on Linux (gentoo)
>> which doesn't occur on the windows version. When I try to copy and paste
>> chinese characters from my web browser to a StyledText widget in my app,
>> it pastes the character as its unicode string. ie. &#20320; turns into
>> u4f60. However typing chinese into the StyledText and copy-pasting into
>> another StyledText works fine. As does pasting from browser to a Text
>> widget.
>>
>> Easiest way to reproduce my problem. Use the RcpMail template and change
>> the Text widget in View.java to a StyledText. Then go to BBC chinese
>> http://news.bbc.co.uk/chinese/simp/hi/default.stm and try to paste some
>> chinese characters in.
>>
>> Any ideas? Thanks.
>>
>> Chris Fong
>>
>>
>>
Previous Topic:How to change color of image using code?
Next Topic:Programmatically activating a single item in editable table
Goto Forum:
  


Current Time: Fri Apr 26 22:48:08 GMT 2024

Powered by FUDForum. Page generated in 0.03209 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top