-----Ursprüngliche Nachricht-----
Von: René Thiel [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 26. Oktober 2006 02:43
An: users-de@httpd.apache.org
Betreff: setlocale ro_RO

Hallo,

wer produziert hier diesen Fehler: Linux, Apache oder PHP?
http://ro-portal.net/strftime1.php
setlocale(LC_ALL, "ro_RO.ISO8859-2");
echo strftime("%A", strtotime("10/28/2006"));


SîmbĂtĂ ist definitiv falsch.
Unter Windows bekomme ich: sâmbata, was schon etwas besser ist,
korrekt wäre aber: Sâmbătă

Ich hoffe, die Sonderzeichen kommen jetzt korrekt an...


Gruß
René Thiel (Rennkuckuck)
mailto:[EMAIL PROTECTED]
--
http://rennkuckuck.de - Die Rumänien-Seiten
http://rtol.de - Dynamische Webseiten mit PHP, mySQL und CSS


hi,
mutter google sagt dazu:

aus: http://de.php.net/setlocale

bogdan at iHost dot ro
02-Mar-2004 11:53 
On some systems (at least FreeBSD 4.x) the format for a `locale' is, for 
example, ro_RO.ISO8859-2. If you use ro_RO instead setlocale will return FALSE. 
Just browse in /usr/share/locale and see what is the name of the directory 
holding your `locale' and use that name in your scripts:

<?php
  clearstatcache();
  $pos = strrpos ($_SERVER["PHP_SELF"], "/");
  $fisier = substr ($_SERVER["PHP_SELF"], $pos + 1);
  $result = filemtime ($fisier);
  $local = setlocale (LC_TIME, 'ro_RO.ISO8859-2');
  if ($local == "ro_RO.ISO8859-2") {
   $modtime = strftime '%e&nbsp;%B&nbsp;%Y&nbsp;%H:%M', $result);
  } else {
   $modtime = strftime ('%d.%m.%Y&nbsp;%H:%M', $result);
  }
  printf ("Ultima&nbsp;actualizare: %s\\n", $modtime);
?> 

greez
h1






--------------------------------------------------------------------------
                Apache HTTP Server Mailing List "users-de" 
      unsubscribe-Anfragen an [EMAIL PROTECTED]
           sonstige Anfragen an [EMAIL PROTECTED]
--------------------------------------------------------------------------


--------------------------------------------------------------------------
                Apache HTTP Server Mailing List "users-de"
      unsubscribe-Anfragen an [EMAIL PROTECTED]
           sonstige Anfragen an [EMAIL PROTECTED]
--------------------------------------------------------------------------

Antwort per Email an