-

strftime() and utf8 under windows

Posted by Paltar on April 30, 2011 in PHP

Some time ago I had a Problem with the PHP-Function strftime(). I wanted to print the month as German text with strftime(’%B’);. But the month happened to be ‘März’ (German for march) and the character ‘ä’ would not show up correctly despite the use of setlocale(LC_ALL, ‘de_DE.UTF8′); to set encoding to utf8. After some searching [...]

Tags: , , , ,

Copyright © 2010-2019 Paltar's Blog All rights reserved.
Desk Mess Mirrored v1.8.3 theme from BuyNowShop.com.