Escape
Escape
Hello,
we have tis Script:
var _testString = "Test&Test Test+Test=Test-Test";
_testString = escape(_testString);
and this one:
var _testString = "Test&Test Test+Test=Test-Test";
_testString = _testString.replace("+", "%2B");
the log say something like this:
Test/var/folders/ff/ffKQdrvpHF4CpidNJmasOU+++TY/-Tmp-/FixtureTest14/inFolder26Test/var/folders/ff/ffKQdrvpHF4CpidNJmasOU+++TY/-Tmp-/FixtureTest14/inFolder20Test+TestDTest-Test
Who need the Folder? Has anybody a tip?
Thanks Lohbrandt
we have tis Script:
var _testString = "Test&Test Test+Test=Test-Test";
_testString = escape(_testString);
and this one:
var _testString = "Test&Test Test+Test=Test-Test";
_testString = _testString.replace("+", "%2B");
the log say something like this:
Test/var/folders/ff/ffKQdrvpHF4CpidNJmasOU+++TY/-Tmp-/FixtureTest14/inFolder26Test/var/folders/ff/ffKQdrvpHF4CpidNJmasOU+++TY/-Tmp-/FixtureTest14/inFolder20Test+TestDTest-Test
Who need the Folder? Has anybody a tip?
Thanks Lohbrandt
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
Escape
I'm a little confused. Your JS snippet doesn't involve a path at all. Did you append _testString variable to another value like job.getPath()? Did you mean to add a directory separator character, eg. '/', between inFolder and _testString?
-
- Newbie
- Posts: 7
- Joined: Mon Sep 24, 2012 12:28 pm
Escape
It's true.
The 's.log' and other text-related functions will treat %[number] as a wildcard parameter. As you can see here, your %2B falls in that category as %2 is treated as the job folder.
You might want to write that text to a binary file to read it.
The 's.log' and other text-related functions will treat %[number] as a wildcard parameter. As you can see here, your %2B falls in that category as %2 is treated as the job folder.
You might want to write that text to a binary file to read it.