We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    Hello
    I’ve a problem with "Umlauts" in my news archive - everywhere else in MODx incl. ditto news-listing they work just fine but not in the news archive.

    In my reflect config file I’ve the following:
    setlocale(LC_ALL, ’de_DE@euro’, ’de_DE’, ’de’, ’ge’);
    	// parameters
    	$id						= 'news';
    	$targetId				= 2478;
    	$parents 				= 8;
    	$getDocuments			= 1;
    	$monthSortDir			= 'desc';
    	$dittoSnippetParameters	= 'parents:8|summarize:all|hideFolders:1';
    	$dateFormat 			        = '%d. %b. %Y'; // '%d. %B %Y, %H:%M:%S'
    	$language				= 'german';


    check the mysql table - all the settings seem to be o.k. and match - actually, locally it works - the problem is just on the server.

    By the way, when I change MODx to iso-8859-1 from utf 8, the dates in ditto/reflect are correct but then the content is screwed up?!
    Hope somebody can help.
    Thanks
      • 19889
      • 616 Posts
      this fixed the issue for me:
      setlocale(LC_TIME, 'de_DE.UTF8', 'de.UTF8', 'de_DE.UTF-8', 'de.UTF-8');