Εμφάνιση Ελληνικών μέσω apache

Mihalis Tsoukalos mtsouk at freemail.gr
Thu Nov 15 18:11:09 EET 2001


Ακόμα και αν ξαναφτιάξω το encoding στον Netscape πάλι δεν εμφανίζεται
κανονικά η πρώτη σελίδα.

Το charset το ορίζω μέσα στο CGI script (cgi.pm perl module) ως εξής:
print header(-charset=>'ISO-8859-7');

Μήπως εδώ πρέπει να προσθέσω και κάτι άλλο;

---
Mihalis Tsoukalos
mtsouk at freemail.gr

Panagiotis Moustafellos <panxer at hol.gr> wrote in message
news:mailman.1005763026.7165.linux-greek-users at lists.hellug.gr...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Στις Τετ 14 Νοε 2001 19:40, ο/η Mihalis Tsoukalos έγραψε:
> > Γεια χαρά σε όλους.
> >
> > Αντιμετωπίζω το παρακάτω πρόβλημα:
> >
> > Έχω ένα CGI perl script που μου εμφανίζει Ελληνικά στις σελίδες του.
> > Μόλις πρόσθεσα authentication (μέσω του apache), η πρώτη σελίδα
εμφανίζεται
> > με κινέζικα και οι υπόλοιπες κανονικά με Ελληνικά!!
> > Όλα αυτά γίνονται με το ίδιο cgi script.
> > Αυτό συμβαίνει μέσα από Linux. Στα Windows τα Ελληνικά φαίνονται
κανονικά
> > από την πρώτη σελίδα.
> >
> > Υπάρχει κάποια λύση σε αυτό;
> > Έχω κάνει κάτι λάθος;
> Poly pithanon na mhn exeis kanei tipota lathos, isos na mhn exeis balei
> ston browser sou, san default encoding/charset/whatever to iso8859-7 (to
> ellhniko dld)..
> Akoma an deis oti den einai auto to problhma (na ksereis oti o explorer
> allazei ta panta se iso8859-7 an tou to peis) kai synexizeis na mhn to
> blepeis apo ton browser sou, tote brosthese sto scriptaki sou ekei pou
dinei
> to html output, metaksy ton <head></head> tags, to ekshs string
> print "Content-Type: text/html\n\n charset=iso8859-7";
> h an kanei print se file kai meta diavazei o browser to .html dokimase na
> baleis
> <META content=\"text/html\; charset=iso8859-7\" http-equiv=Content-Type>
> enw an einai plain html
> <META content="text/html; charset=iso8859-7" http-equiv=Content-Type>
> Ayta..
> > ---
> > Mihalis Tsoukalos
> > mtsouk at freemail.gr
>
> - --------
> Panagiotis Moustafellos
> (aka panXer)





More information about the Linux-greek-users mailing list