On Mon, 5 Jun 2006 at 10:50:11 +0300, Nick Tzanos wrote:
> I know they look accented in the message. The problem is that I
> cannot write accented characters within J. E.g. I write ? and get ?.
I probably wasn't being very clear, but I meant that when I use j to
read your message and look at ? (for example in the line above), I see
the accented character correctly, and I can copy and paste it (as I
just did with the ?) and the accented character still shows up
correctly, so I think j is basically handling accented characters
properly, but that doesn't solve your problem of how to type them in.
Unfortunately I'm an American with an American keyboard, and I have no
idea how to type accented Greek characters at all (although I'm good at
copying and pasting them).
Isn't Java (and/or your operating system) supposed to take care of such
The top Google hit for "java default encoding" has this to say:
The Java I/O classes will read and write Unicode data in the
"default character encoding" by default. The default encoding
depends on some combination of the JVM, the underlying OS, and the
OS-level locale settings.
J does have a preference related to this. You can add a line like:
defaultEncoding =3D "ISO-8859-1"
to ~/.j/prefs (or C:\.j\prefs), and j will use the encoding you specify
when doing file I/O. But I don't see anywhere in the code where this
preference is used in the area of typing characters into the buffer, so
I believe j simply relies on Java's default behavior in this area.
I can't remember any complaints about this from Greek users of j in the
past, so I suspect that your system is misconfigured in some way at the
level of Java or the OS, rather than at the level of j as an
I'm sorry if this isn't particularly helpful, but my experience in this
area is limited.