How to handle response varying from developer tool to code debugging in chrome?



  • I'm using RESTassured with Java. Getting response in compressed from UTF16 format. Response varies from developer tool to code debugging in Chrome/Firefox, here variation means some character got changed.

    Steps:

    1. Loaded the URL
    2. Opened developer tool by pressing F12
    3. Selected the API and checked the response. Here i got response like: ᯡࡈ䆼̀䬥堰攢䰢\ᙴঠ㙀ழⓒ
    4. Then gone to sources then checked the response it was something like this ᯡࡈ䆼̀䬥堰攢䰢ᙴঠ㙀ழⓒ

    How to handle this? what all the response contains? is it contains headers?



  • What you show is actually a response body. Headers are represented in "Headers" tab in Dev Tools like this:

    enter image description here

    Brief look up of what you provided shows that it's UTF-16 encoded string:

    enter image description here

    For example:

    1 - BATAK LETTER CA

    2 - MANDAIC LETTER ATT

    3 - http://www.fileformat.info/info/unicode/char/41bc/browsertest.htm no dedicated name



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2