Εμφάνιση Ελληνικών μέσω apache
Panagiotis Moustafellos
panxer at hol.gr
Sun Nov 18 12:42:01 EET 2001
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Στις Σαβ 17 Νοε 2001 20:40, ο/η Mihalis Tsoukalos έγραψε:
> Ιδού ορισμένες πληροφορίες:
>
> ~/web > ./display.pl "" | head -5
> Charset: iso-8859-7
> Refresh: 600
> Content-Type: text/html
>
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
> <HTML><HEAD><TITLE>web site</TITLE>
> <META NAME="charset" CONTENT="iso-8859-7">
> </HEAD><BODY BGCOLOR="#AAAAAF"><HR><H1
> ALIGN="center">message</H1><HR><TABLE BORDER="">
> ~/web >
>
> και ιδού η perl subroutine που τυπώνει τα παραπάνω:
>
> sub HEADER
> {
> print
> header(-type=>'text/html',-charset=>'iso-8859-7',-refresh=>'600');
> print start_html(-bgcolor=>'#AAAAAF', -title=>web site',
> -meta=>{'charset'=>'iso-8859-7'});
> print hr();
> print h1({-align=>'center'}, "message");
> print hr();
> }
>
dokimase anti gia ton parapanw kwdika na baleis
sub HEADER
{
print
header(-type=>'text/html\; charset=iso-8859-7',-refresh=>'600');
print start_html(-bgcolor=>'#AAAAAF', -title=>web site',
-meta=>{'charset'=>'iso-8859-7'});
print hr();
print h1({-align=>'center'}, "message");
print hr();
}
h an den doulepsei auto dokimase kai to parakatw (den kserw an einai swsto:))
sub HEADER
{
print
header(-type=>'text/html\; charset=iso-8859-7',-refresh=>'600');
print start_html(-bgcolor=>'#AAAAAF', -title=>web site',
-meta=>{'http-equiv'=>'text/html\; charset=iso-8859-7'});
print hr();
print h1({-align=>'center'}, "message");
print hr();
}
Isws parathrhseis oti merika <meta> tags tha perisseuoun, blepeis an
douleuei, koveis raveis ton kwdika gia na bgaleis otidhpote peritto (les
kai se peirazei an exeis mia grammh parapanw sto html output ;p)
Ayta...
- --------
Panagiotis Moustafellos
(aka panXer)
- --------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE79+T6bGyRbxX5XdQRAnMYAKDRD3alCGjyR4gD58ui+9s8ntF/ygCgvXI9
DpSQys/uR0sCyyeQcbzDxWA=
=MOw8
-----END PGP SIGNATURE-----
More information about the Linux-greek-users
mailing list