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

Re: [MacPerl] Character translation problem



On Mon, Sep 13, 1999 at 06:58:16PM -0500, Steve Swantz wrote:
> Some characters are getting munged - apostrophes look like commas, and
> opening and closing quotes come out as a weird "double comma" and a percent
> sign, respectively. They're using PC's, and I can't duplicate the problem
> from Word on the Mac.

Curly quotes.  Curly quotes in the Windows character set do not correspond
to curly quotes in the Mac character set.  (That's probably a per-mil sign,
rather than a percent sign.)


> Now if I run:
>
> ### now fix some funny characters
>
> $text =~ s/\xE2/\'/g;   #apostraphe
> $text =~ s/\xE3/\"/g;   #opening double quote
> $text =~ s/\xE4/\"/g;   #closing double quote
>
> in MacPerl, the problem gets fixed. Put the same file on the Unix server,
> and it doesn't.

> Any ideas?
>

The process of putting the file on the Unix server probably changes those
characters.  Can you figure out what the characters end up as after the
transfer to Unix?


Ronald

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