meetn2veg has asked for the wisdom of the Perl Monks concerning the following question:
Got this thing I've written - user creates a webpage. The title of the page is used as the filename.html
Spaces are converted to underscores and a limit on the number of charachers is in place and working.
Just came across a problem - accents on letters (á,é,í,ó,ú etc..)
What's "the best" (or most efficient) way of filtering accented characters and replacing them with 'normal' non-accented characters to form a valid filename?
I've thought about a simple s/...\g etc, bot don't know the necessary ASCII codes for accented characters.
Can anyone shed some light for me please.
Regards
Richard.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Foreign language characters...
by helgi (Hermit) on Oct 08, 2002 at 15:04 UTC | |
by blakem (Monsignor) on Oct 09, 2002 at 04:27 UTC | |
|
Re: Foreign language characters...
by John M. Dlugosz (Monsignor) on Oct 08, 2002 at 14:54 UTC | |
|
Re: Foreign language characters...
by Abigail-II (Bishop) on Oct 08, 2002 at 15:08 UTC | |
|
Re: Foreign language characters...
by fglock (Vicar) on Oct 08, 2002 at 14:38 UTC | |
|
Re: Foreign language characters...
by seattlejohn (Deacon) on Oct 08, 2002 at 14:57 UTC | |
|
Re: Foreign language characters...
by talexb (Chancellor) on Oct 08, 2002 at 13:35 UTC |