On 29 Oct 2012, at 12:01, Vincent Habchi <vi...@macports.org> wrote:

> Le 29 oct. 2012 à 12:53, Roland King <r...@rols.org> a écrit :
> 
>> Does CFURLCreateStringByReplacingPercentEscapes() not do this for you? I 
>> often use it going the other way from text to escaped text, not just for 
>> URLs. 
> 
> AFAIK, CFURLCreateStringByReplacingPercentEscapes() substitues special chars 
> for % in URLs (e.g: “ ” ↔ “%20”) but does not handle HTML-ampersand escapes 
> (e.g: &nbsp; ↔ “ ”). I did a shallow Google search and found nothing except 
> statements that no NSString or other Cocoa object could provide such a 
> service.

Indeed, CFURLCreateStringByReplacingPercentEscapes and friends deal in 
*percent* escaping, not *XML entity* escaping
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to