468,545 Members | 1,714 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,545 developers. It's quick & easy.

Implementin Greek languge to php website

Hi,

I have a application which shows the content in two different languages
English and Russian. It has Languge folder where in it maintains
seperate language folders named English and Russian. The folders of the
respective language contains php file with variables defined with
respective Language entries..

Next.. I would like to Implement The Greek language. I created one
folder by name greek and the contents of the variables are now greek
entries. I translated english entries with babel fish.

Now the problem is:

When I selected the Greek option to show in Greek. My Website is
showing junk and unable to parse the language entries.?

I would like to know the possible cause and how to correct them?. If
any tutorial,references regarding Multi language implementation of
websites with PHP is appreciable.

Thanks in Advance,
Sharma chelluri
Hyderbad, India

Jul 17 '05 #1
3 1778
NC
sharma wrote:

I have a application which shows the content in two different languages English and Russian. It has Languge folder where in it maintains
seperate language folders named English and Russian. The folders of the respective language contains php file with variables defined with
respective Language entries..

Next.. I would like to Implement The Greek language. I created one
folder by name greek and the contents of the variables are now greek
entries. I translated english entries with babel fish.

Now the problem is:

When I selected the Greek option to show in Greek. My Website is
showing junk and unable to parse the language entries.?


Assuming your browser has Greek support (does it?), you probably
forgot to adjust character set heading. English is usually
rendered with a header setting like this:

header('Content-Type: text/html; charset=iso-8859-1');

Sometimes, 'Latin-1' or 'windows-1252' can be used as well.

Russian has several character sets, the most common of which
is Windows-1251:

header('Content-Type: text/html; charset=windows-1251');

So if you want to render Greek, you must send an appropriate
"Content-Type:" header:

header('Content-Type: text/html; charset=iso-8859-7');

Cheers,
NC

Jul 17 '05 #2
Hi NC,

Thanks first..

Yeah, you are right. but where can i put this header. My application is
a template kind of system. Header, footer,mainpage type. Any How i Got
good idea of what you are saying i will try this and get back to
you...?
Mean time any more info please reply...

Thanks
Sharma chelluri,
PHP Programmer,
Hyderabad,India..

Jul 17 '05 #3
NC
sharma wrote:

Yeah, you are right. but where can i put this header.
The only rule you need to follow is this: headers must be
sent before any output. If anything (as much as a single
carriage return) gets output before the header() call,
you will get the "Headers already sent" error.
My application is a template kind of system. Header,
footer,mainpage type.


Then the header() call should be early in the header file...

Cheers,
NC

Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Kyle | last post: by
27 posts views Thread by alexdoulou | last post: by
9 posts views Thread by PAN | last post: by
4 posts views Thread by Kiki | last post: by
1 post views Thread by interuser | last post: by
3 posts views Thread by new programmer | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by UniDue | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.