Kais, Those are not ASCII characters. Nor arem ost of them control characters. They are extended charcters, based on an unsigned, rather than signed, char type. ASCII proper only extends to character 127, the upward-pointing triangle [or the character so rendered by my command environment]. The other characters also print at my DOS prompt, and all seem to be accented or otherwise top-decorated latin characters. Unfortunately, these do not translate into ASCII very well in many formats [including e=mail]. See the readout below for an illustration.
kasi ramanathen wrote: > $ln=~s/'/,/gis; > $ln=~s/[]//gis; and... John wrote: > $ln=~s/'/,/gis; > $ln=~s/[?????]//gis;s; I took the part from the opening bracket to end-of-line from each of those second lines, and used ord() to get the ASCII/Unicode value: #!/usr/bin/perl -w use strict; open IN, "<unichars.txt"; my @Lines = <IN>; close IN; foreach my $Line (@Lines) { my @Chars = split //, $Line; print "\n$Line\n"; foreach (@Chars) { my $num = ord($_); print "$num\n"; } } Kasi's original 91 143 144 157 129 141 127 93 47 127 47 103 105 115 59 10 John's "copy:" 91 63 63 63 63 63 127 93 47 127 47 103 105 115 59 115 //extra semicolon 59 //extra 's' 10 If you want to actually use the non-ASCII characters contained in MS Word, you will have to learn the wider character set used. You may also need to come up with a list of MS Word control characters. I'm not sure what the solution is. I assume that part of the work of a locale object is to abstract the difference by mapping an appropriate slice of unicode to the first 127 characters, according to usage within the language group. Unfortunately, you were extremely vague about which characters you wish to change to which. What are the results you expected to see? This may be part of the problem. It is NEVER a good idea to try to code a problem until you can explain in plain language EXACTLY what you want to see happen. An ameoba is a genius compare to even the most sophisticated processor. No compiler or machine can fill in the blanks for you. They are machines, not mind-readers. Please write, include a little less code, but explain exactly what you expect each line you do send to do. People will be able to help you much more. Joseph -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]