[JIRA] (JENKINS-59841) Scriptler 3.1 destroys groovy scripts containing German special characters (Umlauts)

5 views
Skip to first unread message

nitschke@fev.com (JIRA)

unread,
Oct 18, 2019, 5:52:02 AM10/18/19
to jenkinsc...@googlegroups.com
Robert Nitschke created an issue
 
Jenkins / Bug JENKINS-59841
Scriptler 3.1 destroys groovy scripts containing German special characters (Umlauts)
Issue Type: Bug Bug
Assignee: Dominik Bartholdi
Components: scriptler-plugin
Created: 2019-10-18 09:51
Environment: Windows Server 2008 64bit
Jenkins 2.190.1
Scriptler 3.1
java version "1.8.0_221"
Priority: Major Major
Reporter: Robert Nitschke

I have some groovy scripts replacing German characters like 'ß' by '.' e.g.:

directory.getName().replace('ß','.')

Now since Scriptler plugin version 3.1 when editing those scripts I see '?' instead of 'ß' and after saving the scripts they are no more working because characters are replaced by invalid characters.

I guess that files are encoded in ISO 8859-1 but now are intepreted as UTF-8.

Finally going back to Scriptler plugin version 2.9 solved the problem.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

domi@fortysix.ch (JIRA)

unread,
Oct 18, 2019, 7:00:02 AM10/18/19
to jenkinsc...@googlegroups.com
Dominik Bartholdi commented on Bug JENKINS-59841
 
Re: Scriptler 3.1 destroys groovy scripts containing German special characters (Umlauts)

Robert Nitschke could you please check wether the files are also saved with the wrong encoding on the disc? at <JENKINS_HOME>/scriptler/scripts?*.groovy

and could you attach a simple example file? 

thanks!

nitschke@fev.com (JIRA)

unread,
Oct 18, 2019, 7:21:03 AM10/18/19
to jenkinsc...@googlegroups.com
Robert Nitschke updated an issue
 
Change By: Robert Nitschke
Attachment: Debug_Scriptler2.9.groovy
Attachment: Debug_Scriptler3.1.groovy

nitschke@fev.com (JIRA)

unread,
Oct 18, 2019, 7:25:02 AM10/18/19
to jenkinsc...@googlegroups.com
Robert Nitschke commented on Bug JENKINS-59841
 
Re: Scriptler 3.1 destroys groovy scripts containing German special characters (Umlauts)

Dominik Bartholdi Please find two files attached. One is the original one saved with Scriptler 2.9. Second is after editing and saving it using Scriptler 3.1. You can see encoding of this file was changed to UTF-8 and two characters 'ß' were replaced by '?'.

Reply all
Reply to author
Forward
0 new messages