473,387 Members | 1,864 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,387 software developers and data experts.

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 1983
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Kyle | last post by:
Got a tough one here for you SQL junkies. I'm working on a website (in ASP) for a national greek/college organization. All it's college chapters have greek chapter names, i.e. Alpha Chapter,...
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....
9
by: PAN | last post by:
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 ->...
4
by: Kiki | last post by:
Hello, I'm trying to find a way to display text in greek or cyrillic in a .NET page using text stored in XML format. I'm getting the greek words displayed like this: "Διάφορα". I'm no expert but...
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...
6
by: pros | last post by:
Hi, I am new to learning how to program in JavaScript and want to design a program in JavaScript that will allow a user to run a Classical Greek vocabulary flashcard program on my web page. My...
3
by: new programmer | last post by:
hi iwould like to ask about how to use function ,pointers and graphics in c languge easily and thanks
6
by: starman | last post by:
Hi all, I'm having trouble trying to enter/retrieve Greek characters. I have an astronomical dbase in MySQL. As you may know, lots of sky objects have Greek letter names (alpha Centauri, etc) but I...
2
by: rsam2011 | last post by:
Hi there, I have a strange problem with an application running on Windows 2000 connecting to a SQL Server 2000 with Greek collation. Runnin this query on the SQL "SELECT...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.