[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [equinox-dev] Equinox and UTF-8
|
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
-------------------------------------------------
stay in touch with your product.
-------------------------------------------------
Holger Mense wrote:
> Hi,
>
> On Wed, 9 Jul 2008 15:45:03 -0400, Oleg Besedin <obesedin@xxxxxxxxxx>
> 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 Eclipse leads to
>
> === cut ===
> § length() = 1
> § cast to byte = -89
> § getBytes() = -62 -89
> === cut ===
>
> while starting it as a bundle in a running Equinox framework outside
> Eclipse leads to
>
> === cut ===
> +é-º length() = 2
> +é-º cast to byte = -62 -89
> +é-º getBytes() = -61 -126 -62 -89
> === cut ===
>
>
>> I've read that Windows has
>> different default encodings for GUI and console applications. If that is
>> true, it might explain why you see different outputs.
>
> I don't think that this is the reason of the watched behaviour. Executing
> the same
> code without a running Equinox framework leads to the correct identical
> result in- and outside
> Eclipse. When running it in an Equinox instance, both results differ. So it
> looks for me like an
> Equinox issue.
>
> Currently I am migrating a bigger application on top of Equinox. The last
> days I was working to get
> it to start again outside my development environment. That was the time
> where a detected the watched
> behaviour.
>