perl - Unrecognized character \xC3; marked by <-- HERE after Tac<--
Running a perl script to a text file I get the following error "Unrecognized character \xC3; marked by <-- HERE after Tac<-- HERE". Basically, I have a portugese text and using this script I need to replace a text with a new one. Given that the text is in portugese, there are some special caracters such as ş,ç,ö,ü. I had also the same poblem trying to count the len of a sting because these letters were counted as two letters.
my script looks like:
Could you please help me resolve this problem?
$data =~ s/\b\Q$oldtext\E\b/$newtext/gi;
Thanks in advance for your time.