473,396 Members | 1,676 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Greek encoding help wanted

PAN
I need some guidance here

I've written this HTML code using the Windows Notebook:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EL">
<html>
<head>
<title>This is a Greek language title -> καρυδάς πληροφορική</title>
</head>
<body>
<p>This is plain Greek text -> Θα είμαστε σύντομα κοντά σας</p>
</body>
</html>
and then I saved it as "index.html " in a local directory. The first time I
load the page in IE6.0-sp2 it came up with unreadable characters - in the
"Greek" text NOT the Latin characters - it came up with Turkish!!! encoding
so I had to disable this language support!. Ever since I was able to load
the page locally and had no problems.

Then I created the same page using a plain text editor in my Mandrake linux
8.2 PC and saved it in the "htdocs" dir of the Apache 2.0 server that I
installed. This PC is locally connected to other PCs that run on WinXP
Pro-sp2. When I access the web page from a Win PC, IE shows the page in
"Western Europe (ISO)" encoding making the page unreadable unless selecting
"Encoding=Greek (Windows) / (ISO)" through the menu option.

This is happening everytime I reload the page from the server. I tried using
CSS and define "lang" settings but had no results. W3 HTML 4.01 is an
excellent documentation but I feel I little bit lost there in the ISOs and
RFCs and have not enough time to figure out myself.

Whow can I overcome this problem? Is this an IE problem? an Apache server
problem? (the linux PC has NO support for Greek characters) Is this the
right group to ask?

I am quite experienced in Windows internals, also C,Pascal,VB etc. win
programmin and also, a newbbie++ in the linux world. :) and I have to teach
basic HTML page creation and uploading, in a classroom of 16-18yo students.
Thank you
Panagiotis C. Karydas
pk******@otenet.gr

PS. please forgive any bad-english writing...
Jul 23 '05 #1
9 14211
"PAN" <pk******@otenet.gr> wrote:
I've written this HTML code using the Windows Notebook: - - and then I saved it as "index.html " in a local directory. The
first time I load the page in IE6.0-sp2 it came up with unreadable
characters
That's not a big surprise, since the document does not specify its own
encoding (in a <meta> hack) _and_ it is not sent via HTTP so there are
no HTTP headers that the browser could use to find the encoding.
So the browser is more or less forced to guess. It guesses wrong for
some reason.
- - so I had to disable this language
support!. Ever since I was able to load the page locally and had no
problems.
Interesting, but not really a solution.

For local viewing, <meta http-equiv="Content-Type" content=
"text/html;charset=iso-8859-7"> is useful.

For a document uploaded onto a Web server, the server should be
configured to send the appropriate charset information; for a demo
if this in action, see
http://www.cs.tut.fi/~jkorpela/test/greek.iso7
(which should display the Greek text irrespectively of your browser
settings, unless you set the browser to override the character encoding
information sent by a server).
- - saved it in the "htdocs" dir of the
Apache 2.0 server that I installed.
On Apache, you should be able to use the .htaccess file to set the
encoding information sent by the browser.

Whether you use both that method (for actual genetating HTTP headers)
and the <meta> tag is somewhat debatable, and debated, here. And it's
hard to tell what you should teach about this to students. In practice,
the <meta> tag is easier to people to grasp and works sufficiently well
_if_ the server does not send HTTP headers that conflict with it.
But if it does, then those headers take precedence (both by the specs
and in actual browser behavior), so the default configuration of the
server is relevant.
When I access the web page
from a Win PC, IE shows the page in "Western Europe (ISO)" encoding
making the page unreadable unless selecting "Encoding=Greek
(Windows) / (ISO)" through the menu option.
That's typical when the encoding information is not specified on the
page itself or in the HTTP headers.
I tried using CSS and define "lang" settings but had no results.


CSS isn't really relevant here. The "lang" attribute is useful in
principle for other reasons, but doesn't affect the encoding issue.

You might benefit from some version of my document
"Using national and special characters in HTML",
http://www.cs.tut.fi/~jkorpela/html/chars
though unfortunately the Greek version
http://www.cs.tut.fi/~jkorpela/html/chars.iso7
is old - I have had no resources for maintaining it; the English
version
http://www.cs.tut.fi/~jkorpela/html/chars.html
is the most up-to-date (which isn't as up-to-date as I'd like to).

Regarding the different encodings used for Greek, I've mostly forgotten
the details, but in some cases it is relevant whether you specify
ISO-8859-7 or windows-1253, since they differ in a few positions, see
http://www.cs.tut.fi/~jkorpela/unicode/greek.html
Any Windows software that you use for writing in Greek probably uses
the Microsoft-defined encoding, windows-1253.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #2
On Wed, 22 Dec 2004, PAN wrote:
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
You need to set up your newsreader^W Outlook Express correctly
in order to transmit special, non-ASCII characters:

Tools > Options > Send
Mail Sending Format > Plain Text Settings > Message format MIME
News Sending Format > Plain Text Settings > Message format MIME
Encode text using: None

If you cannot even write Greek in Outlook Express, don't expect
configuring a webserver correctly.
I've written this HTML code using the Windows Notebook:
Please don't post your code here - supply a URL!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EL"> ^^
No such thing! It must be "EN" instead of "EL".
<p>This is plain Greek text -> ?? ??????? ??????? ????? ???</p>
See above!
When I access the web page from a Win PC,
Give URL!
W3 HTML 4.01 is an
excellent documentation but I feel I little bit lost there in the ISOs and
RFCs and have not enough time to figure out myself.
I suggest reading
http://ppewww.ph.gla.ac.uk/~flavell/charset/checklist ,
especially
http://ppewww.ph.gla.ac.uk/~flavell/...t/checklist#s4
and also
http://ppewww.ph.gla.ac.uk/~flavell/...t/ns-burp.html
http://www.w3.org/International/O-HTTP-charset.html
for server settings.

A sample Greek text is
http://www.unics.uni-hannover.de/nhtcapri/greek.html7
together with the line
AddType text/html;charset=ISO-8859-7 html7
in my .htaccess file. This means that the encoding (charset)
is set to Greek ISO-8859-7.
(the linux PC has NO support for Greek characters)
I cannot believe this. Perhaps you haven't found it yet?
Is this the right group to ask?
For authoring, yes. You might consider also
<news:comp.infosystems.www.servers.ms-windows>
<news:comp.infosystems.www.servers.unix>
for server questions.
PS. please forgive any bad-english writing...


Never mind! English is a foreign language in most parts of the worlds:
in Continental Europe, in Asia, in Africa, in the Americas.

Jul 23 '05 #3
PAN
Thank you Jukka

Your remarks AND links are very helpful.
For local viewing, <meta http-equiv="Content-Type" content=
"text/html;charset=iso-8859-7"> is useful.


I have already used a statement like the above (also replacing "iso-8859-7"
with "windows-1253") but had no results. But I believe this is a matter of
the server configuration. I will study further and come up again if needed.

Thanks again

Panagiotis C. Karydas

Jul 23 '05 #4
PAN
Thank you Andreas for your remarks and links. I will study them carefully.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EL">

^^
No such thing! It must be "EN" instead of "EL".


Why so? According to ISO 639 the greek language code is EL. Is it wrong to
write it this way?

Panagiotis C. Karydas

Jul 23 '05 #5

"PAN" <pk******@otenet.gr> wrote in message
news:cq**********@usenet.otenet.gr...
Thank you Jukka

Your remarks AND links are very helpful.
For local viewing, <meta http-equiv="Content-Type" content=
"text/html;charset=iso-8859-7"> is useful.
I have already used a statement like the above (also replacing

"iso-8859-7" with "windows-1253") but had no results. But I believe this is a matter of
the server configuration. I will study further and come up again if

needed.

When you open a file locally, there *is* no server.

Jul 23 '05 #6

"PAN" <pk******@otenet.gr> wrote in message
news:cq**********@usenet.otenet.gr...
Thank you Andreas for your remarks and links. I will study them carefully.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EL">

^^
No such thing! It must be "EN" instead of "EL".


Why so? According to ISO 639 the greek language code is EL. Is it wrong to
write it this way?


Yes, since the DTD isn't in Greek.

Jul 23 '05 #7
On Wed, 22 Dec 2004 20:58:07 +0200, "PAN" <pk******@otenet.gr> wrote:
Thank you Andreas for your remarks and links. I will study them carefully.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EL">

^^
No such thing! It must be "EN" instead of "EL".


Why so? According to ISO 639 the greek language code is EL.
Is it wrong to write it this way?


Yes it's wrong. That very last part of the 'PUBLIC' identifier is there
to say what language that is used in the entity that corresponds to the
maybe 'PUBLIC' entity you want to refer to :-)

--
Rex
Jul 23 '05 #8
"Harlan Messinger" <h.*********@comcast.net> wrote:
>> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EL"> ^^ No such
>> thing! It must be "EN" instead of "EL".


Why so? According to ISO 639 the greek language code is EL. Is it
wrong to write it this way?


Yes, since the DTD isn't in Greek.


Indeed, despite the fact that after taking a look at HTML DTDs, many
people have shouted "this is all Greek to me!". :-)

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #9
On Wed, 22 Dec 2004, I wrote:
A sample Greek text is
http://www.unics.uni-hannover.de/nhtcapri/greek.html7


http://validator.w3.org/ fails on character xA4 (euro sign)
of ISO-8859-7:2003.

Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: alexdoulou | last post by:
Hello, I am trying to type greek fonts into common html forms on the Internet explorer but erroneous text is being typed instead of clear greek. Greek language pack is installed correctly....
1
by: interuser | last post by:
Hi I have a web app that has a webpage on which there is a textbox and a submit button. if I type greek and press submit, the greek does not go through to the webserver. If I type greek and...
4
by: Giannis Vrentzos | last post by:
Hi all, I 'm testing postgres 8.0 beta 1 an i have the following problem. I have a field with value Γιάννης. If i execute the following query it does not returns any rows. select * from test...
0
ekekakos
by: ekekakos | last post by:
Hello, I am having a serious and urgent problem with the character settings of an oracle database. The database is sitting in a solaris unix server and when we run the env command we have the...
8
by: =?gb2312?B?yMvR1MLkyNXKx8zs0cSjrM37vKvM7NHEsru8+7z | last post by:
I lookup the utf-8 form of delta from the link. http://www.fileformat.info/info/unicode/char/0394/index.htm and then I want to print it in the python ( I work under windows) #!/usr/bin/python...
0
by: abhishekForgotten | last post by:
Looking for some guidance on whether SMPP v3.4 will support greek messages or not ? If not how i can recive/send greek message via smpp v3.4, without decreasing length of msg (160) , I know if i...
12
by: Punkis | last post by:
Hi all, I have a problem with my php and mysql project. I use an auctions software, named phpauction for my project. I import into my database with utf8 encodingm and I can see the greek...
1
mikek12004
by: mikek12004 | last post by:
I am using this code to produce an xml file, do not pay any attetion to the queries the thing is that even if I put the UTF-8 encoding when I try to run the xml file I get the greek characters as...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.