Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » UTF-8 Asian Characters Come out as Rubbish
UTF-8 Asian Characters Come out as Rubbish [message #450447] Sat, 12 February 2005 19:55 Go to next message
kent gibson is currently offline kent gibsonFriend
Messages: 114
Registered: July 2009
Senior Member
Hi-ya

I am populating a tree with some values taken from DMOZ, which have
russian, japanese, hebrew, etc character sets. I am using a contenthandler
and labelhandler.

The original was encoded as utf-8.

As far as I know all I have to do is pass these strings and I should be
able to see them, no? I see only rubbish for the ones written in other
languages. Funnily enough for Hebrew characters most of the characters
come out?!

I have tried to convert to utf-16 but that didn't work.

Have I corrupted the file maybe?

thanks

kent
Re: UTF-8 Asian Characters Come out as Rubbish [message #450506 is a reply to message #450447] Mon, 14 February 2005 16:50 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
What platform? Do the strings print properly to the console?

"kent" <kentgibson@yahoo.com> wrote in message
news:culmvf$j0q$1@www.eclipse.org...
> Hi-ya
>
> I am populating a tree with some values taken from DMOZ, which have
> russian, japanese, hebrew, etc character sets. I am using a contenthandler
> and labelhandler.
>
> The original was encoded as utf-8.
>
> As far as I know all I have to do is pass these strings and I should be
> able to see them, no? I see only rubbish for the ones written in other
> languages. Funnily enough for Hebrew characters most of the characters
> come out?!
>
> I have tried to convert to utf-16 but that didn't work.
>
> Have I corrupted the file maybe?
>
> thanks
>
> kent
>
Re: UTF-8 Asian Characters Come out as Rubbish [message #450874 is a reply to message #450506] Fri, 18 February 2005 23:12 Go to previous messageGo to next message
kent gibson is currently offline kent gibsonFriend
Messages: 114
Registered: July 2009
Senior Member
hi-ya

thanks for the interest. On the console I normally just get question marks.

the platform is windows.

whatcha think could be wrong?

thanks

kent

Steve Northover wrote:

> What platform? Do the strings print properly to the console?

> "kent" <kentgibson@yahoo.com> wrote in message
> news:culmvf$j0q$1@www.eclipse.org...
>> Hi-ya
>>
>> I am populating a tree with some values taken from DMOZ, which have
>> russian, japanese, hebrew, etc character sets. I am using a contenthandler
>> and labelhandler.
>>
>> The original was encoded as utf-8.
>>
>> As far as I know all I have to do is pass these strings and I should be
>> able to see them, no? I see only rubbish for the ones written in other
>> languages. Funnily enough for Hebrew characters most of the characters
>> come out?!
>>
>> I have tried to convert to utf-16 but that didn't work.
>>
>> Have I corrupted the file maybe?
>>
>> thanks
>>
>> kent
>>
Re: UTF-8 Asian Characters Come out as Rubbish [message #450875 is a reply to message #450874] Fri, 18 February 2005 23:18 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
You need to make sure you have a font that can display the characters.

Look at:

Window -> Preferences -> General -> Colors and Fonts -> Debug -> Console
Font

"kent" <kentgibson@yahoo.com> wrote in message
news:cv5spa$6dp$1@www.eclipse.org...
> hi-ya
> thanks for the interest. On the console I normally just get question
> marks.
>
> the platform is windows.
>
> whatcha think could be wrong?
>
> thanks
>
> kent
>
> Steve Northover wrote:
>
>> What platform? Do the strings print properly to the console?
>
>> "kent" <kentgibson@yahoo.com> wrote in message
>> news:culmvf$j0q$1@www.eclipse.org...
>>> Hi-ya
>>>
>>> I am populating a tree with some values taken from DMOZ, which have
>>> russian, japanese, hebrew, etc character sets. I am using a
>>> contenthandler
>>> and labelhandler.
>>>
>>> The original was encoded as utf-8.
>>>
>>> As far as I know all I have to do is pass these strings and I should be
>>> able to see them, no? I see only rubbish for the ones written in other
>>> languages. Funnily enough for Hebrew characters most of the characters
>>> come out?!
>>>
>>> I have tried to convert to utf-16 but that didn't work.
>>>
>>> Have I corrupted the file maybe?
>>>
>>> thanks
>>>
>>> kent
>>>
>
>
Re: UTF-8 Asian Characters Come out as Rubbish [message #450883 is a reply to message #450875] Sat, 19 February 2005 13:25 Go to previous message
Eclipse UserFriend
Originally posted by: kent.generatescape.com

hey cool that must be it cuz funnily enough the standard font, courier
supports hebrew!

so in my tree if I have a string and I have no idea what language it is, how
can I choose the correct font?

"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:cv5t57$7r0$1@www.eclipse.org...
> You need to make sure you have a font that can display the characters.
>
> Look at:
>
> Window -> Preferences -> General -> Colors and Fonts -> Debug -> Console
> Font
>
> "kent" <kentgibson@yahoo.com> wrote in message
> news:cv5spa$6dp$1@www.eclipse.org...
>> hi-ya
>> thanks for the interest. On the console I normally just get question
>> marks.
>>
>> the platform is windows.
>>
>> whatcha think could be wrong?
>>
>> thanks
>>
>> kent
>>
>> Steve Northover wrote:
>>
>>> What platform? Do the strings print properly to the console?
>>
>>> "kent" <kentgibson@yahoo.com> wrote in message
>>> news:culmvf$j0q$1@www.eclipse.org...
>>>> Hi-ya
>>>>
>>>> I am populating a tree with some values taken from DMOZ, which have
>>>> russian, japanese, hebrew, etc character sets. I am using a
>>>> contenthandler
>>>> and labelhandler.
>>>>
>>>> The original was encoded as utf-8.
>>>>
>>>> As far as I know all I have to do is pass these strings and I should be
>>>> able to see them, no? I see only rubbish for the ones written in other
>>>> languages. Funnily enough for Hebrew characters most of the characters
>>>> come out?!
>>>>
>>>> I have tried to convert to utf-16 but that didn't work.
>>>>
>>>> Have I corrupted the file maybe?
>>>>
>>>> thanks
>>>>
>>>> kent
>>>>
>>
>>
>
>
Previous Topic:Custom Widgets how to ?
Next Topic:Macintosh New and Newbie Problem
Goto Forum:
  


Current Time: Thu Apr 25 10:39:36 GMT 2024

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

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

Back to the top