CFURL is an object type providing facilities for creating, parsing, and dereferencing URL strings within the Core Foundation. This tag refers to the various character encodings supported of CFURL properties.
Questions tagged [cfurl-encoding]
10 questions
11
votes
4 answers
Convert from CFURLRef or CFStringRef to std::string
How can I convert a CFURLRef to a C++ std::string?
I also can convert from the CFURLRef to a CFStringRef by:
CFStringRef CFURLGetString ( CFURLRef anURL );
But now I have the same problem. How can I convert the CFStringRef to a std::string?

3ef9g
- 781
- 2
- 9
- 19
6
votes
4 answers
Getting alias path of file in swift
I'm having trouble resolving the alias link on mac. I'm checking if the file is an alias and then I would want to receive the original path. Instead I'm only getting a File-Id.
Anly ideas?
func isFinderAlias(path:String) -> Bool? {
var…

Silve2611
- 2,198
- 2
- 34
- 55
1
vote
2 answers
Confusion with case used by CFURLCreateStringByAddingPercentEscapes encoding
I want URL encoding to be done. My input string is "ChBdgzQ3qUpNRBEHB+bOXQNjRTQ="
I get an output as "ChBdgzQ3qUpNRBEHB%2BbOXQNjRTQ%3D" which is totally correct except the case which gets encoded.
Ideally, it should have been…

mayuur
- 4,736
- 4
- 30
- 65
0
votes
1 answer
How to make this curl request using Almofire?
This is my curl url
curl -X POST https://fax.twilio.com/v1/Faxes \
--data-urlencode "From=+15017122661" \
--data-urlencode "To=+15558675310" \
--data-urlencode…
0
votes
0 answers
AudioFileOpenUrl doesn't work
I'm using Apple's Audio Queue for playing an audio file on my computer. I've followed their guide, but I'm having a problem when I ask to the user to insert the absolute-path to research the audio file. Here there's my code. I hope you can help…

pino
- 25
- 8
0
votes
2 answers
URL encoding error in Retrofit 2.0
@GET("images")
Call getimages(@Query("where=item_id") int item_id);
When I use this the equal to sign after where gets encode to %3D which my server doesn't accept.I want = symbol after where in my api call.
And my link…

Hitesh Danidhariya
- 709
- 1
- 7
- 14
0
votes
1 answer
CFURLCreateStringByAddingPercentEscapes is deprecated. Replacement?
Here is my code
CFStringRef escapedStr;
escapedStr = CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,
originalString,
…

Umar
- 17
- 6
0
votes
2 answers
Underscore character in URL is making Host name=null error in Android
First of all I CANNOT change that URL.... that said...
I have a really dumb problem, I am getting this error:
Caused by: java.lang.IllegalArgumentException: Host name may not be null
in the code below:
URL url = null;
try{
…

Josh
- 6,251
- 2
- 46
- 73
0
votes
1 answer
Undefined symbols for architecture x86_64: "_CFBundleCopyResourceURL",
Trying to access the file path to the resources folder in a Mac .app bundle using Qt. Here's my code:
CFURLRef appUrlRef;
appUrlRef = CFBundleCopyResourceURL(CFBundleGetMainBundle(), CFSTR("AFE-MP-512"),NULL,NULL);
CFStringRef filePathRef =…

Mitchell D
- 465
- 8
- 24
0
votes
0 answers
How to use url encoded data in get method?
I am working on a restful service in asp.net MVC 4 Web API. I have a get method that getting a url encoded data as a parameter from URI. But, the thing is when I try this method from RESTClient (firefox tool), I am getting 404. And when i check the…

Zehra Subaş
- 463
- 7
- 17