

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
25 messages in org.codehaus.groovy.userRe: [groovy-user] File encoding problem| From | Sent On | Attachments |
|---|---|---|
| Michael Baehr | Mar 23, 2007 7:25 am | |
| Guillaume Laforge | Mar 23, 2007 9:31 am | |
| Michael Baehr | Mar 23, 2007 9:57 am | |
| Guillaume Laforge | Mar 23, 2007 10:07 am | |
| Michael Baehr | Mar 23, 2007 10:16 am | |
| Guillaume Laforge | Mar 23, 2007 10:20 am | |
| Michael Baehr | Mar 23, 2007 10:24 am | |
| Guillaume Laforge | Mar 23, 2007 12:19 pm | |
| Michael Baehr | Mar 23, 2007 12:36 pm | .groovy |
| Russel Winder | Mar 23, 2007 12:41 pm | |
| Guillaume Laforge | Mar 23, 2007 12:47 pm | |
| Michael Baehr | Mar 23, 2007 12:52 pm | |
| Russel Winder | Mar 23, 2007 12:53 pm | |
| Michael Baehr | Mar 23, 2007 12:54 pm | |
| Russel Winder | Mar 23, 2007 12:58 pm | |
| Michael Baehr | Mar 23, 2007 1:01 pm | |
| Russel Winder | Mar 23, 2007 1:04 pm | |
| Michael Baehr | Mar 23, 2007 1:05 pm | |
| Russel Winder | Mar 23, 2007 1:06 pm | |
| Michael Baehr | Mar 23, 2007 1:24 pm | |
| Russel Winder | Mar 23, 2007 1:31 pm | |
| Michael Baehr | Mar 23, 2007 1:40 pm | |
| Gavin Grover | Mar 23, 2007 4:51 pm | |
| Barzilai Spinak | Mar 23, 2007 6:39 pm | |
| Jochen Theodorou | Mar 25, 2007 9:59 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [groovy-user] File encoding problem | Actions... |
|---|---|---|
| From: | Gavin Grover (gvgr...@yahoo.com) | |
| Date: | Mar 23, 2007 4:51:13 pm | |
| List: | org.codehaus.groovy.user | |
I run lots of unicode groovy files on Windows, those saved as 'unicode' file
encoding from Notepad.
I seem to remember a similar problem with JSR-02, but ever since have been
bootstrapping my unicode files with an ascii file like so:
groovy.lang.MetaClass.setUseReflection(true) cc= new org.codehaus.groovy.control.CompilerConfiguration() cc.setSourceEncoding('unicode') new GroovyShell( cc ).run( new File('UnicodeFile.groovy') )
Cheers, Gavin Grover
----- Original Message ---- From: Michael Baehr <code...@googlemail.com> To: us...@groovy.codehaus.org Sent: Saturday, March 24, 2007 4:41:21 AM Subject: Re: [groovy-user] File encoding problem
Besides the command line problems (which you summarized in perfect detail), we seem to have a Groovy plugin problem.
While the Eclipse Java compiler honors the settings made in Eclipse (all UTF-8 here), the Groovy plugin seems to use the Java file.encoding as I'm getting the correct result only if I add the file.encoding setting when starting Eclipse. I will open a new thread for this.
Russel Winder schrieb:
On Fri, 2007-03-23 at 15:24 -0500, Michael Baehr wrote:
I was able to overcome the problem with setting the JAVA_OPTS environment variable in Windows to
JAVA_OPTS=-Dfile.encoding=UTF-8
At least on the command line it works for me now.
Setting it as an option for the Eclipse launcher also solves the problem inside Eclipse!
I can confirm that (now I have "downgraded" the groovy shell script so it actually works of Solaris 10) your test program works fine on Solaris and Ubuntu and fails on Mac OS X. I have exactly the same environment variables set for Ubuntu and Mac OS X but slightly different for Solaris as Sun refuse to accept the Brits will ever use UTF-8.
On Mac OS X I have JDK 1.5 and on Ubuntu I have JDK 1.6 so it could be a JDK issue. Does anyone know when Apple will release their JDK 1.6?
You fix works fine on Mac OS X so it is not a Windows specific thing. Neither is it a Groovy thing per se since I am using exactly the same Groovy installation on Solaris, Mac OS X and Ubuntu -- same files in fact.
It looks like we need to add the JAVA_OPTS stuff to the other shell scripts as well as groovy.
Current hypothesis has to be that it is not a Groovy issue per se but some JDK issue.
--------------------------------------------------------------------- To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
____________________________________________________________________________________ Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front








.groovy