Re: replace chars



[ Please only quote what's necessary to give context. ]
[ Please don't top-post. ]

Octavian Rasnita wrote:
Gunnar Hjalmarsson wrote:
I believe the OP will need to identify all the characters he would like to see converted, and code the conversion rules himself using the tr/// or s/// operator.

Yes I think that it might not be any standard transforming algorithm for doing this, and the program that do that, do their own transform.
So finally I've decided to try finding all the possible chars with tildes, acute or grave accents, umlauts, etc, and replace using tr//.

I hope I won't have any issues, because the chars are UTF-8.

Well, then you'll probably need to identify the utf8 octet sequences that correspond to the special characters you want to see transformed.

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.



Relevant Pages

  • Re: replace chars
    ... and code the conversion rules himself using the tr/// ... Yes I think that it might not be any standard transforming algorithm for ... I hope I won't have any issues, because the chars are UTF-8. ... Perl strings are in UTF-8*, but if you want to specify a character ...
    (perl.beginners)
  • Re: replace chars
    ... > Yes I think that it might not be any standard transforming algorithm> for ... > I hope I won't have any issues, because the chars are UTF-8. ... Perl strings are in UTF-8*, but if you want to specify a character ... I have also seen that length($string) returns the number of bytes of $string, and not the number of chars. ...
    (perl.beginners)