CyberChef icon indicating copy to clipboard operation
CyberChef copied to clipboard

Operation request: Escape Smart Characters

Open n1474335 opened this issue 7 years ago • 4 comments

Summary

An operation to convert smart characters (quotes, dashes, apostrophes, arrows, copyright signs, ellipses etc.) back to plain ASCII.

Example

Input

“”—‘’ →©…

Output

""--''-->(c)...

References

http://unicode.scarfboy.com/?s=quotation+mark http://quotesandaccents.com/

n1474335 avatar Nov 20 '18 12:11 n1474335

What should happen if the input contains a character with no obvious text equivalent, eg ☣? http://unicode.scarfboy.com/?s=U%2b2623

Should it be:

  • Removed from the output
  • Included in the output
  • Escaped to HTML/Unicode entity
  • Something else

ghost avatar Dec 30 '18 01:12 ghost

It would probably make sense for this to be an option that the user can specify. The following options should be available:

  • Remove
  • Include
  • Replace with a '.'

If someone wants to escape them as HTML or Unicode entities, there are other operations that can achieve that.

n1474335 avatar Jan 01 '19 17:01 n1474335

I am interested in this can you assigned this to me ?

rehanmm avatar Jun 04 '25 15:06 rehanmm

it looks like this was implemented in #1291 but that PR was closed.

wesinator avatar Jun 07 '25 17:06 wesinator