URL encoded data gets changed when used at magic text

I have a text field that I fill with url encoded data. When I view it thru the database UI it’s correct but when I use it for magic text there are a bunch of characters added.

Goes in as:
25eu8v74O-%20jon%40xyz.net%20invoice%20%23349

Comes out as:
25eu8v74O-%20jon%2540xyz.net%20invoice%20%2523349

The character @ which goes in as %40 comes out as %2540

The character # which goes in as %23 comes out as %2523

Why? What’s the fix?

TIA

2 Likes