Is there a way to coerce CFString's percent-encoding routines to operate on a binary byte stream, or must I roll my own NSData URL-encoder?
@wilshipley Does ISO-Latin1 permit every possible byte code? Me thinks I better roll my own. :)
-
-
@cbarrett@wilshipley I.e. assuming CF got the white-list (unescaped characters) right, I’d rather lean on them if it was easy. -
Tweet unavailable
-
@cbarrett@wilshipley Well, I need to know which characters to leave unescaped, is all I’m saying. Scrutinizing specs and all that. -
Tweet unavailable
-
@cbarrett@wilshipley Nope - only the bytes in the binary that happen to not be legal characters. Trust me, this matters.
-
-
-
@danielpunkass I’m pretty sure it works 0-255, otherwise a ton of hacks would fail (like, Windows uses codes that aren’t in Latin1). -
@wilshipley@danielpunkass Yes, latin 1 supports all bytes. We use it as a container encoding in our apps. -
@willco007@wilshipley Thanks! Good to know. Scary, but good to know! What does “container encoding” mean in this context? -
@danielpunkass@wilshipley we put the bytes into a latin 1 string, then convert it to the correct ‘display’ encoding later. -
@willco007@wilshipley Ah, cool. So it’s your safe “stringful” NSData object, basically? -
@danielpunkass@wilshipley Right. It also gives you a fail safe ‘something’ to display if converting an encoding fails for some reason. -
@willco007@wilshipley Ah, right. Nice tips, thanks.
-
-
-
@danielpunkass MacRoman does… -
@mjtsai Hmm. Intriguing :) /cc@wilshipley
-
-
-
@danielpunkass@wilshipley all sequences are legal iso Latin 1, but rolling your own sounds reasonable here. You don't have a string. -
@kongtomorrow@wilshipley Thanks. Yeah, seems safer here to know my domain securely.
-
-
-
@danielpunkass@wilshipley Use base64 for that. -
@mdhughes@wilshipley Not an option if the API in question has not chosen that design.
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Daniel Jalkut
Wil Shipley
Will Cosgrove
Michael Tsai
Ken Ferry
Cyber Mark 2020