SitePoint Sponsor |
|
User Tag List
Results 1 to 7 of 7
-
May 2, 2009, 10:41 #1
- Join Date
- Sep 2004
- Location
- Pakistan
- Posts
- 304
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Greek Letters are not showing on web page
Hi!
when I try to echo greek characters using a php script,the letters are not shown correctly. Iam using charset as UTF-8,what should I add to the script so it automatically selects the right encoding?
Thanks in advance
-
May 2, 2009, 10:58 #2
- Join Date
- Mar 2008
- Posts
- 1,149
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
- Your file needs to be actually saved in UTF-8.
- PHP Code:
header("Content-Type: text/html; charset=utf-8");
-
May 2, 2009, 11:01 #3
- Join Date
- Sep 2004
- Location
- Pakistan
- Posts
- 304
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Following is my PHP Code in "language.php" file
When I save it in Dreamweaver , it gives me warning and on webpage, some ??????? signs appear.
<?php
$_textlink['aboutus'] = 'Σχετικά με Εμάς';
$_textlink['allproducts'] = 'Όλα τα προϊόντα';
$_textlink['myaccount'] = 'Ο Λογαριασμός Μου';
$_textlink['contactus'] = 'Επικοινωνία';
$_text['chooselanguage'] = 'Επιλέξτε γλώσσα';
?>
-
May 2, 2009, 12:44 #4
- Join Date
- Sep 2004
- Location
- Pakistan
- Posts
- 304
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Hi!
Following is link:
http://vibersol.com/sitesdemo/yuprint/
- Change language to GREEK.
- You will be able to see top bar is showing dumb characters.
-
May 3, 2009, 00:40 #5
- Join Date
- Mar 2008
- Posts
- 1,149
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
You need to somehow make Dreamweaver save the file as UTF-8. I don't use Dreamweaver though, so I can't help you with that.
-
May 3, 2009, 01:50 #6
Try using notepad...
click save as then
Just change the encoding to UTF-8
see if it works.
-
May 3, 2009, 03:27 #7
- Join Date
- Sep 2004
- Location
- Pakistan
- Posts
- 304
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Thanks for your guidance. I have changed default Encoding to 'Unicode(UTF-8)' in Dreamweaver and then saved file. It is working now.
Thanks to all of you in solving my problem.
Bookmarks