Bug report: URL Decode function not properly decoding URLs
Matin-B opened this issue · comments
Describe the bug:
The "URL Decode" operation in CyberChef is not properly decoding certain URL-encoded strings.
To Reproduce:
- Go to CyberChef (https://gchq.github.io/CyberChef/)
- Enter the following URL-encoded string in the input box: https://fa.wikipedia.org/wiki/%D8%B7%D8%B1%D8%AD%E2%80%8C%D9%88%D8%A7%D8%B1%D9%87_%D8%AF%D8%B1%D9%85%D8%A7%D9%86%DB%8C
- Add the "URL Decode" operation to the recipe
- Run the recipe
- The output will be incorrect
Expected behavior:
The "URL Decode" operation should properly decode the input URL-encoded string to the correct URL.
The output should be:
https://fa.wikipedia.org/wiki/طرحواره_درمانی
However, the output I am getting is:
https://fa.wikipedia.org/wiki/طرØâ��Ù�ارÙ�_درÙ�اÙ�Û�
Additional context
The issue is not specific to a particular input string and occurs consistently in the current version of CyberChef. It's important to note that copying the decoded output using the "Copy" button works correctly.