For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > May 2006 > Re: stop translating fancy apostrophy









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: stop translating fancy apostrophy
José Luis Pérez Diez

2006-05-23, 6:59 pm

In article <PBtcg.85$3W6.21@fe03.lga>, Robert wrote:
> On win32 I have some scripts that parse list of files.
>
> Some filenames have fancy apostrophes, m-dashes, angled quotes, etc.
>
> My script translates all of these to simple apostrophe, n-dashes, straight
> quotes, etc.
>
> These translated names then no longer work to access the files.
>

Keep them in a hash with the untransliterated names as data.

Robert

2006-05-23, 9:57 pm


"José Luis Pérez Diez" <jluis@agujero-negro.escomposlinux.org> wrote in
message news:VA.00000ade.00c435bc@agujero-negro.escomposlinux.org...
> In article <PBtcg.85$3W6.21@fe03.lga>, Robert wrote:
> Keep them in a hash with the untransliterated names as data.


How? That's the question. A read/print of the file name outputs the
translated characters.


José Luis Pérez Diez

2006-05-24, 3:59 am

In article <81Pcg.331$9Q3.192@fe06.lga>, Robert wrote:
>
> How? That's the question. A read/print of the file name outputs the
> translated characters.


Reading the rest of the thread I'm more could you post a feu
lines of code that show your problem



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com