Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0.0m1
-
Component/s: Compiler Integration
-
Labels:None
Description
In Eclipse preferences, you can choose an encoding for files.
The Groovy plugin doesn't seem to use this setting, but relies on Java file.encoding to select the encoding for reading files. Therefore, Groovy scripts/classes stored in UTF-8 using extended characters are misinterpreted by the plugin.
On Windows, the following script
def s = "äöü" // German umlauts
println s.size()
prints 6 on my machine. After setting file.encoding=UTF-8 as Eclipse startup option the script prints 3 correctly.
Actually, Eclipse allows to change the encoding per file, so the plugin should access this information and setup the compiler configuration accordingly on a file by file basis!