Greek Language

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
gurjit
Forum Contributor
Posts: 314
Joined: Thu May 15, 2003 11:53 am
Location: UK

Greek Language

Post by gurjit »

I am having difficulties with inserting and outputting greek language on pages.

I have a website with add/modify and view screens. Users from UK, USA, Germany enter data in there language. All was fine until the Greeks wanted to join.

I have some code in php which makes the first character uppercase:

Code: Select all

<?php 
 
$eq_fname = ucfirst($eq_fname);
$eq_lname = ucfirst($eq_lname);
$eq_postcode = strtoupper($eq_postcode);
?>
 
When I type anything into the textbox and try to update or insert a record, it gets cut off.
I also have script with the following:

Code: Select all

<?php
echo stripslashes(htmlentities($stu_alt_fname,ENT_COMPAT));
 
?>
In this case all characters come out in hex format with the greek characters.

Any ideas how this can all be made global?
Post Reply