in reply to How to remove other language character from a string
If what I read is actually your code, you'll need HTML::Entities and a /g modifier to s///:
$ cat test.pl use 5.14.1; use warnings; use HTML::Entities; my $image; $image ='ครัวซองเŬ +8;ซนด์วิชไข$ +56;ดาว Croissant Egg Sandwich ครั +วซองเเซนด์ +;วิชไข่ดาว'; $image = decode_entities ($image); $image =~ s/\p{Thai}//g; print $image; $ perl test.pl Croissant Egg Sandwich $
Enjoy, Have FUN! H.Merijn
In Section
Seekers of Perl Wisdom