Jump to content
Sign in to follow this  

how to convert unicode characters to unicode escape sequences

Recommended Posts

I have to convert strings with special characters to unicode escape sequences, how can I do?


input: questa è una prova
output: questa \u00e8 una prova

Share this post

Link to post
Share on other sites

Hi all,
Thanks Malkey for the interesting solution using SRER. It took me a moment to understand the end of your $Output line ==>   &') & "''")   <== so I would like to share its meaning with our readers :)

Malkey used an interesting Replace pattern, based on the Ternary function, as shown in this image :


Each ampersand (&) is literally included in the updated string resulting from SRER, between the Ternary functions. As there is a final ampersand (circled in red), that's why he added "''" at the end of the string, so the Execute function won't generate an error when executed.

Well done !

Edited by pixelsearch

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...