]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Added URIUtil.encodeFilename2 which encodes only necessary characters. 25/625/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 14 Jun 2017 16:22:30 +0000 (19:22 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 14 Jun 2017 16:27:37 +0000 (19:27 +0300)
The new method uses the same '%' URI style encoding as
URIUtil.encodeFilename but encodes only characters that cannot be
present in Windows file names, i.e. the following: <>:"/\|?*

This method can be used to convert arbitrary user-given names to valid
file names in wizards etc.

refs #7301

Change-Id: Ia7e264e5304ff0533376c73f5ae9312e197ccf15


No differences found