[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Character translation problem - fixed



Well, the mystery is solved.

On the server, the curly apostrophe and quotes are

                     ascii   hex
apostrophe           146     92
curly open quote     147     93
curly close quote    148     94

As suggested, the hex E2, E3 and E4 that I got from the files on my machine
were the results of the ISO translation that Fetch and apparently Outlook
Express both do.

For anyone else new to translations with the same problem...


@words = split (/\s/, $text);

foreach $word (@words) {
 @letters = split (//, $word);
 foreach $letter (@letters) {
  $ascii = ord($letter);
  $hex   = sprintf "%lx", $ascii;
  print "$letter  $ascii  $hex  \n";
 }
 print "\n\n";
}

Thanks to all (you know who you are) for the suggestions and pointers.

Steve Swantz
sneakers@nwaalpa.org

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org