See previous comments about encoding; but \x in a substitution takes exactly two hex digits unless you wrap the hex in braces: s/\x{200b}//g. Your second example is thus equivalent to s/\x{20}0b//g. This is of course for reasons of backward-compatibility with a pre-Unicode age.
\u is used for upper-casing a single character (the digit 2 in your first example).
In reply to Re: Remove u200b unicode From String
by hv
in thread Remove u200b unicode From String
by phildeman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |