When I'm executing the following query:
SELECT HEX(FILL),ID FROM dbo.table WHERE FILL <> ''
It gives me below result:
404040404040404000000F40404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040
When I modified my query like this
SELECT FILL,ID FROM dbo.table WHERE FILL <> ''
I'm getting the result as shown in the picture:
used this URL for conversion: https://codebeautify.org/hex-string-converter
The above URL does not give me correct desired result. So I used, Python.
This is my python code to convert to a readable format:
import base64
hex_data ='404040404040404000000F40404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040404040'
ascii_string = str(base64.b16decode(hex_data))[2:-1]
print (ascii_string)
I'm getting the result as:
@@@@@@@@\x00\x00\x0f@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
How can I make the string readable ( I wanted to read plain English chars)?