DnsQuery_A response encoding issue

This is a discussion on DnsQuery_A response encoding issue within the Windows Programming forums, part of the Platform Specific Boards category; Hey guys, I have a program that uses DnsQuery_A that is making a TXT request to download raw hex strings ...

  1. #1
    Registered User
    Join Date
    Aug 2012
    Posts
    1

    Exclamation DnsQuery_A response encoding issue

    Hey guys,

    I have a program that uses DnsQuery_A that is making a TXT request to download raw hex strings in the TXT response. This all works nicely and the TXT data contains the same raw data that I sent, until I send the following string:

    Code:
    \x4f\x10\xf5\x95\x07\x98\xa8\xec\x76\x8b\x4f\x38\x5d\x9e
    When I retrieve this data from the DnsQuery_A TXT field I get the following string:

    Code:
    \x4F\x10\x07\x3F\x3F\x76\x4F\x38\x5D\x3F


    If you can tell me why this is happening, and how I can get the raw data returned, that would be appreciated.

    Thanks.
    Last edited by discontent; 08-26-2012 at 05:11 PM.

  2. #2
    train spotter
    Join Date
    Aug 2001
    Location
    near a computer
    Posts
    3,856
    Sounds like you have a bug...

    If you found this answer less than helpful, you might consider your question, which provided no code, no description of how you convert the data, no example of what does work, etc.

    Because you did not take the time to ask a 'smart question', the 100 odd coders here who could possibly answer your question, looked at it and all ignored it.
    "Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
    Friedrich Nietzsche

    "I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
    George Best

    "If you are going through hell....keep going."
    Winston Churchill

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to convert string in url encoding to html encoding?
    By Jerel2k11 in forum C Programming
    Replies: 6
    Last Post: 11-06-2011, 08:05 AM
  2. Winhttpopenrequest encoding issue
    By jrrtolkienfan in forum Windows Programming
    Replies: 4
    Last Post: 10-07-2011, 01:55 AM
  3. html encoding issue
    By Checker1977 in forum Tech Board
    Replies: 8
    Last Post: 12-18-2008, 04:18 PM
  4. XML encoding issue
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 05-16-2008, 05:21 AM
  5. DnsQuery_A Return handling
    By BianConiglio in forum Windows Programming
    Replies: 2
    Last Post: 08-15-2005, 07:30 PM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21