Forum Discussion
Will you try setting it to utf-8 and try again.
I have already tried with encoding as 'UTF-8' but no luck and replacing with questionMark(?) in the xml file
- nmrao5 years agoChampion Level 3If you set utf-8, that should be shown in System Properties. Please have a check.
- ravi_ava5 years agoOccasional Contributor
I have changed encoding as UTF-8 in system propertiesm(attached screen shot) but still replacing with question mark.
- richie5 years agoCommunity Hero
Hi,
Swapping between utf-16 and utf-8 wont make any difference for your issue.
You need to encode your characters correctly!As I said before (I obviously wasn't clear) escape sequences exist for the control characters you care about (if there wasn't, you wouldn't be able to do anything except delete the chars from your payload):
for the SOH character sequence, replace 'SOH' with ''
for the STX character sequence, replace 'STX' with ''
I've just done this on my machine and I've just executed it fine - the characters are saved as the escape sequences in the XML (see pic)
and the content of my script is
So no issues!
As I said before - whether it was UTF-8 or UTF-16 wouldn't make any difference in this case - UTF-16 is a superset of UTF-8 - i.e. every character in UTF-8 exists in UTF-16. Also - all the characters in UTF-8 have the same escape sequences as the equivalent character in UTF-16.
Hope this has explained a little and helped!
Rich