I'm not sure about Windows XP - isn't it Unicode anyways? It is set to
German though. My Linux is en_US.UTF-8.
But I'm not even talking about printing the String to the console (this
is a problem with my Linux installation as well, as it seems to have
some problems with Unicode), but the interpretation of the Groovy file
by the Groovy interpreter/compiler.
How are the -c / --encoding switches supposed to be used?
Michael
Guillaume Laforge schrieb:
What are the default system charsets of your OSes?
On 3/23/07, Michael Baehr <code...@googlemail.com> wrote:
Hi there,
I created a Groovy script with the following content:
def s = "äöü" // three German umlaut characters
println s.size()
The script is saved as UTF-8.
If I run it on Linux, it correctly prints "3", but on Windows it prints
"6", interpreting each double-byte UTF-8 character as two distinct
characters.
I tried to play with the -c / --encoding command line parameters, but
got error messages like the following:
$ groovy -c utf-8 test.groovy
Caught: BUG! exception in phase 'parsing' in source unit 'test.groovy'
charsetName
Any clues what's going on?
cu
Michael
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email