Support » Fixing WordPress » PHP Serbian strings

  • I use this to display date on my WordPress website:

     <?php date_default_timezone_set('Europe/Belgrade');
                                        setlocale(LC_ALL, 'SR', 'rs'); echo utf8_decode(ucwords(strftime("%A, %d. %B %Y.")));?>

    But it does not display č.

    I tried to change to utf8 in phpmyadmin and it does not work.

    utf8_decode not working
    utf8_encode not working.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Serbian strings’ is closed to new replies.