From: Arne Vajhøj on
On 28-04-2010 03:23, Jukka Lahtinen wrote:
> Live DVB<livedvb(a)gmail.com> writes:
>> Well in the end, after few more hours of work I changed URIEncoding to
>> "windows-1250" at my server.xml, also changed all utf-8 to
>> windows-1250. I then changed the letters with their ascii(hex?)
>
> BAD change. You should use ISO-8859-1 instead, it's a universal standard
> unlike windows-anything.

Being a universal standard does not help him much when the standard
does not contain the characters he need.

He needs ISO-8859-2.

And BTW Windows-1250 is "close" to IS0-8859-2 (there are
more important difference than between Windows-1252 and
ISO-8859-1 though !).

Arne

From: Arne Vajhøj on
On 28-04-2010 04:06, bugbear wrote:
> Lars Enderin wrote:
>> Jukka Lahtinen wrote:
>>> Live DVB <livedvb(a)gmail.com> writes:
>>>> Well in the end, after few more hours of work I changed URIEncoding to
>>>> "windows-1250" at my server.xml, also changed all utf-8 to
>>>> windows-1250. I then changed the letters with their ascii(hex?)
>>> BAD change. You should use ISO-8859-1 instead, it's a universal standard
>>> unlike windows-anything.
>>>
>> ISO-8859-1 doesn't work for all European languages. There are other
>> ISO-8859-? variants.
>
> I'm confused. In 2010, coding a website under Java, why
> would anyone use anything other than utf-8, giving
> full Unicode support?

Nostalgia like Cobol, punched cards, hardcopy terminals etc..

:-)

Arne

From: Arne Vajhøj on
On 28-04-2010 06:09, Jukka Lahtinen wrote:
> bugbear<bugbear(a)trim_papermule.co.uk_trim> writes:
>> I'm confused. In 2010, coding a website under Java, why
>> would anyone use anything other than utf-8, giving
>> full Unicode support?
>
> To avoid multibyte encoding. It makes file sizes and string lengths
> confusing

It should not have any significance for the typical web app.

> and there are editors and other software that don't support
> it.

Time to upgrade or change software.

Arne


From: Arne Vajhøj on
On 28-04-2010 06:06, Jukka Lahtinen wrote:
> Lars Enderin<lars.enderin(a)telia.com> writes:
>> Jukka Lahtinen wrote:
>>> Live DVB<livedvb(a)gmail.com> writes:
>
>>>> Well in the end, after few more hours of work I changed URIEncoding to
>>>> "windows-1250" at my server.xml, also changed all utf-8 to
>>>> windows-1250. I then changed the letters with their ascii(hex?)
>
>>> BAD change. You should use ISO-8859-1 instead, it's a universal standard
>>> unlike windows-anything.
>
>> ISO-8859-1 doesn't work for all European languages. There are other
>> ISO-8859-? variants.
>
> Sorry, I forgot that, always using iso-8859-1 myself when writing
> Finnish. (Does windows-1250 support some languages not supported in
> iso-8859-1?)

Yes.

Windows-1252 is more like ISO-8859-2.

> Anyway, my point was that windows-1250 is platform-specific, meant only
> for M$ systems, while iso standards are platform-independent and
> universally standardized.

The differences between Windows and ISO are practically zero for
western european, but noticeable for eastern/central european.

Arne


From: Arne Vajhøj on
On 28-04-2010 03:17, Live DVB wrote:
> On Apr 28, 2:46 am, Arne Vajh�j<a...(a)vajhoej.dk> wrote:
>> That is a poor hack.
>>
>> You could most likely have fixed the last problem by
>> just saving the file in windows-1250.
>
> Well you're correct of course, it's not really a good solution,
> however, changing the encoding on project properties didn't solve the
> problem. I'm not sure of some other way to do this (I'm using
> Netbeans).

I don't think changing project properties will update the
content of files in the project. But since I does not
use NB then I can not be sure.

But many editors have the ability to "Save As" in a given
encoding.

Arne