Menu

print octet string in readable form

Help
Anonymous
2013-01-03
2013-03-19
  • Anonymous

    Anonymous - 2013-01-03

    There are fields defined as OCTET STRING in my asn definition file. Yet these are fields like username, telephonenumber, etc. Thus I know they are net mere byte codes.
    Here's the code I am using to set such a field:
    MyType.user = *OCTET_STRING_new_frombuf(&asn_DEF_OCTET_STRING, username, strlen(username); //ignore asserts for now
    when I want to print them, I see fields like:
    user: 32 30 34 30
    which is normal,  I guess, because these are the octal codes for the characters.

    Is there any way that I can print those fields in the xer_fprintf as snormal trings, without changing the definiton file

     
  • Anonymous

    Anonymous - 2013-01-03

    nevermind. looks like only solution is in the previous thread

     

Log in to post a comment.