Hi,
I am in struggle with UTF-8 encoding of strings while using Equinox 3.4
and now seeking for some help.
I have the following code as example, which encodes a string
in two different ways into a byte representation. First by cast, then
with usage of String.getBytes(). The code is used inside a
that I started to think about it I need to check something in my
code :-).
Thanks,
Oleg
Holger Mense <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
07/09/2008 02:35 PM
Please respond to
Equinox development mailing list
To
equinox-dev@eclipse.org
cc
Subject
[equinox-dev] Equin
Hi,
On Wed, 9 Jul 2008 15:45:03 -0400, Oleg Besedin <[EMAIL PROTECTED]>
wrote:
> To get more consistent results, use String.getBytes("UTF8"). The
> getBytes() method uses default encoding.
using String.getBytes("UTF-8") does not change the behaviour.
Running the code as a bundle inside Eclips
You use standard Java classes. I can't see how Equinox can interfere
with this.
I see that you specify the default encoding to be used when you run
Equinox. Do you specify it when you run as normal application?
--
Danail Nachev
Senior Software Engineer/Development Tools
ProSyst Labs EOOD
Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the OSGi Alliance
[EMAIL PROTECTED]
office: +1 386 848 1781
mobile: +1 386 848 3788
From:
Holger Mense <[EMAIL PROTECTED]>
To:
Equinox development mailing list
Date:
2008/07/10 02:37 AM
Subject:
Re: [equinox-dev] Equinox and
Hello,
On Thu, 10 Jul 2008 09:54:24 +0300, Danail Nachev <[EMAIL PROTECTED]>
wrote:
> You use standard Java classes. I can't see how Equinox can interfere
> with this.
I don't know either. But I have the different outputs of the same code once
run
with Equinox once run without. And the same code
Hello,
On Thu, 10 Jul 2008 03:01:40 -0400, BJ Hargrave <[EMAIL PROTECTED]>
wrote:
> Well you should not be getting bytes from a String. A String is a set of
> Characters. Some characters may fit into bytes, but some are wider.
that is correct.
> Also, remember that the length of a String is