Forum Discussion

mats2021's avatar
mats2021
New Contributor
5 years ago
Solved

Swedish char in filename

Hi all, 

 

I have a script that's read a xml tag and use that name to search för a mtaching XML fil.

It works fine sp long as I don't have any SWE char in the file name, but that is sometimes required.

 

context.content = groovy.xml.XmlUtil.serialize(new XmlParser().parse(groovyUtils.projectPath+"/mockResponses/${fileToLoad}.xml"))

 

fileToLoad can for example be svenljunga.xml

and 

högsby.xml and this one not work.

The char can be å ä ö

java.net.MalformedURLException: no protocol:

 

It's on Linux platform 

How can I come around this?

 

Thank's