How to differentiate between two types of double quotes

Hi Team,

I need to extract the data between two words which are always static, but I am facing issue in quotes the text is there.
Sometimes we get the text like “Customer” and Sometimes we get the text like “Customer”

I have built two different logics for both, but not able to check which double quote is the input string.

Can anyone help me how to bulid logic to check which quote is there in input string

Hi @nagini.pragna ,

Can you explain further what you’re trying to get? Thank you.

Kind regards,
Kenneth

Hi @nagini.pragna

Welcome to UiPath community

There are different types of double quotes in UTF-8 encoding, such as:

• " U+0022 QUOTATION MARK

• “ U+201C LEFT DOUBLE QUOTATION MARK

• ” U+201D RIGHT DOUBLE QUOTATION MARK

you can use the ChrW function to get the character by its Unicode value

This will return "
string quote1 = ChrW(34)
This will return “
string quote2 = ChrW(8220)
This will return ”
string quote3 = ChrW(8221)

Check out this thread

Regards
Gokul

1 Like

Hi,

Hope the following sample helps you.

Sample20230313-AL.zip (2.8 KB)

Regards,

1 Like

Thanks for the reply I found solution.