G
Guest
Hi !
I have an issue where I have to process string character by character
and when special character occurs I need to make some action.
The problem is that the string consists
unicode characters as well so when I do something like
@a = split //, $mystring
I get multiple entries (from two to 4 bytes).
What I need to do is mostly to replace those characters with some normal
character (X for example)
Let's say I have unicode character with the code 010f.
$mystring=~s/\u{010f}/X/g doesn't work.
Any idea ? Should I use some speciall library to do that ?
I have an issue where I have to process string character by character
and when special character occurs I need to make some action.
The problem is that the string consists
unicode characters as well so when I do something like
@a = split //, $mystring
I get multiple entries (from two to 4 bytes).
What I need to do is mostly to replace those characters with some normal
character (X for example)
Let's say I have unicode character with the code 010f.
$mystring=~s/\u{010f}/X/g doesn't work.
Any idea ? Should I use some speciall library to do that ?