Y
Yohan N. Leder
Hi,
I've a problem for which I've created
- a recent thread : <http://minilien.fr/a0juc6>,
- another one in the alt.html group : <http://minilien.fr/a0jubn>,
- an online script which show the problem :
<http://yohannl.tripod.com/cgi-bin/form2dump.pl>.
Well, this said, maybe a solution would be to use the UTF-8 charset for
my generated HTML pages... But, this is a problem for me because of
these reasons :
- Some target servers are using Perl 5.00503 under FreeBSD and there's
nothing about UTF-8 encoding/decoding in the stock modules of this
release.
- On those old servers, stock Perl modules only are authorized, even in
personal /cgi-bin directory. I'm aware it's a big constraint, but I've
not any way to change the decision about that : we have to do with this!
- HTML forms generated by the Perl scripts must be able to handle all
which may be usually typed in English and French language, including
euro sign.
- These Perl scripts contain a configurable part where different persons
(some being not developers) will be able to change some strings (stored
as constants : "use constant NAMEOFCONSTANT => "The string people can
write, rewrite and manage by themself as if it was a configuration
feature";"), and we can't ask them to type character entity rather than
special or accentuated characters when there will be ones (e.g.
à, etc). So, if I would choose to use UTF-8, I should, in the
same time, find a way (without external module) to encode these
"configurable strings" prior to display them in any browser.
How to manage UTF-8 in these conditions ?
I've a problem for which I've created
- a recent thread : <http://minilien.fr/a0juc6>,
- another one in the alt.html group : <http://minilien.fr/a0jubn>,
- an online script which show the problem :
<http://yohannl.tripod.com/cgi-bin/form2dump.pl>.
Well, this said, maybe a solution would be to use the UTF-8 charset for
my generated HTML pages... But, this is a problem for me because of
these reasons :
- Some target servers are using Perl 5.00503 under FreeBSD and there's
nothing about UTF-8 encoding/decoding in the stock modules of this
release.
- On those old servers, stock Perl modules only are authorized, even in
personal /cgi-bin directory. I'm aware it's a big constraint, but I've
not any way to change the decision about that : we have to do with this!
- HTML forms generated by the Perl scripts must be able to handle all
which may be usually typed in English and French language, including
euro sign.
- These Perl scripts contain a configurable part where different persons
(some being not developers) will be able to change some strings (stored
as constants : "use constant NAMEOFCONSTANT => "The string people can
write, rewrite and manage by themself as if it was a configuration
feature";"), and we can't ask them to type character entity rather than
special or accentuated characters when there will be ones (e.g.
à, etc). So, if I would choose to use UTF-8, I should, in the
same time, find a way (without external module) to encode these
"configurable strings" prior to display them in any browser.
How to manage UTF-8 in these conditions ?