Skip to content

Conversation

@bartoszj
Copy link
Contributor

pdata prints content of NSData object. By default it is using UTF-8 encoding, but other encodings like UTF-16/UTF-32, ISO-8859-1/2, Windows CP-1250/1/2/3/4 are also supported.

Example usage:

pdata self.data
pdata -e utf16 self.data

@kastiglione
Copy link
Contributor

Nice, thank you!

I trust you that all the encoding values are right :)

kastiglione added a commit that referenced this pull request Mar 25, 2015
Add pdata command to print content of NSData object.
@kastiglione kastiglione merged commit d447d64 into facebook:master Mar 25, 2015
@kastiglione kastiglione mentioned this pull request Oct 31, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants