This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
packExtensionForBrowser () { | |
echo "#" | |
echo "##### Building $productName as $type for $browser #####" | |
cd $sourceDir | |
# Remove .DS_Store file, if any | |
rm -f $productName/BrowserCommon.DS* | |
# Make a temporary directory path which we shall use for building |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Question: Which NSCharacterSet should I pass to -[NSString stringByAddingPercentEncodingWithAllowedCharacters:] | |
so that it works exactly like the deprecated CFURLCreateStringByAddingPercentEscapes() did? | |
Answer: Either URLFragmentAllowedCharacterSet or URLQueryAllowedCharacterSet | |
Explanation: | |
That answer comes from the following program output, which is the result of running | |
the code below it. | |
Frag Host Pswd Path Qery User CFnd |
OlderNewer