Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Insert Special characters in a formula using codes?

E4Victory
5 - Atom

Hi Everyone,

 

I am trying to insert special characters into a formula using Unicode..

 

In Excel, I would use something like so:

SUBSTITUTE([cell],CHAR(160)," ")
 
In Alteryx, I want to do something similar but instead of using: Replace([cell], " ", " ") , I want to use the codes found here: https://en.wikipedia.org/wiki/List_of_Unicode_characters 
 
Anyone has any guidance on how to achieve this?
 
Thank you.
8 REPLIES 8
dougperez
12 - Quasar

Thats a tricky one hahaha, i dont know if the replace formula do that

Try to use Regex to do this or create a table with the code/specialcharacters and use the find/replace.

mceleavey
17 - Castor
17 - Castor

Hi @E4Victory ,

 

I've attached a tool that allows you to pull tables from HTML. Use this to load in that table, then use a find and replace tool to replace with the unicode characters.

 

Hope this helps.

 

M.



Bulien

mceleavey
17 - Castor
17 - Castor

Hi @E4Victory ,

 

I've built the workflow to get the table as a source.

 

M.



Bulien

atcodedog05
22 - Nova
22 - Nova

Hi @E4Victory 

 

You can try CharFromInt() function which turns Unicode number to character. Using this you can replace. Guessing its similar to Char function.

atcodedog05_0-1620923832670.png

 

And vise versa is CharToInt()

 

Hope this helps 🙂

E4Victory
5 - Atom

This is a good solution, thank you.

E4Victory
5 - Atom

That's perfect. Thank you it worked like charm.

Here is the requested formula: Replace([cell], CharFromInt(160), " ").

atcodedog05
22 - Nova
22 - Nova

Glad to hear that fixed your issue @E4Victory . Excel Char() was a new function to me 😅

mceleavey
17 - Castor
17 - Castor

@atcodedog05  it was new to me too.

 

Every day's a school day.

 

M.



Bulien

Labels