Jan-27-2023, 05:47 AM
Hi,
I guess something went wrong before.
However, the questions is why your string includes hex squences anyway. I looks like an extract from a bible or something like that and they rarely used hex sequences in their texts back in the days. I guess when reading / getting the data which lead to the string something was wrong with encodng applied?
Gruß, noisefloor
I guess something went wrong before.
\x
marks the start of a hex sequence and Python expacts that two characters from the 0-9a-h range follow. Which is not that case in your code.However, the questions is why your string includes hex squences anyway. I looks like an extract from a bible or something like that and they rarely used hex sequences in their texts back in the days. I guess when reading / getting the data which lead to the string something was wrong with encodng applied?
Gruß, noisefloor