|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-03-19 10:17 UTC] contact at zefxis dot gr
Description:
------------
The code below should display today's day and month in the Greek locale.
All I get is a bunch of "?" for each letter of the words. If I remove the UTF-8 header I get the proper Greek words.
Reproduce code:
---------------
<?php
header('Content-Type: text/html; charset=UTF-8');
setlocale (LC_TIME, 'gr');
echo strftime("%A %B");
?>
Expected result:
----------------
??????? ???????
Actual result:
--------------
??????? ???????
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 16:00:01 2025 UTC |
The following returns "Saturday March". In other words there's no locale by the value of 'gr.UTF-8' on Windows XP (also tried 'el_GR.UTF-8'). Maybe it only exists on *nix systems. <?php header('Content-Type: text/html; charset=UTF-8'); setlocale (LC_TIME, 'gr.UTF-8'); echo strftime("%A %B"); ?>