472,986 Members | 2,869 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,986 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 1961
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: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.