Hi Jason,
I found the issue now: the default charset/encoding in Mac Os X is MacRoman. Although I saved the .groovy file using UTF-8, something seems to go wrong when it is being read from the file system
By calling groovy --encoding utf-8 script.groovy it worked. It's an annoying Mac OS Specialty...
Thanx for looking into this!
Cheers
Sven
On Wed, Jul 1, 2009 at 6:31 PM, Jason Stell
<jstell@...> wrote:
Hi Sven
I cut-and-pasted your script into a new file (ANSI encoded), ran under Groovy 1.5.7 / JDK 1.6.0_11 and it seemed to work fine:
in ascii t
in ascii h
in ascii i
in ascii s
in ascii
in ascii i
in ascii s
in ascii
in ascii a
in ascii
in ascii t
in ascii e
in ascii s
in ascii t
this is a test
<>'"&
in default
¼in default
in default
in default
in default
in default
in default
in default
in default
in default
in default
in default
in default
in default
in default
©¼ÇÈÉÊËÐÑßàäç™
Something about your source file encoding?
Jason
--
Sven Haiges
sven.haiges@...Yahoo Messenger / Skype: hansamann
Personal Homepage, Wiki & Blog:
http://www.svenhaiges.de
Subscribe to the Grails Podcast:
http://feeds.grailspodcast.com/grailspodcasthttp://www.grailspodcast.com