Character Enconding problem in PageName

Post Reply
agallardo1980

Character Enconding problem in PageName

Post by agallardo1980 » Sat Jan 26, 2019 7:15 pm

Hi,

I detect a little issue with accent mark in "o" in spanish page name. My $pageName is "MeteoAlmendralejo.es - Servicio Meteorológico de Almendralejo". In the menu, in Info tab the "ó" character is bad codified in UTF8.

Jachym, could you add this line for future release ??

FIX:
menu.php:226
change: $defaultSpecs['aboutPage'] = array("pages/other/aboutPage.php",$pageName,"mticon-logo");
by this: $defaultSpecs['aboutPage'] = array("pages/other/aboutPage.php",utf8_encode($pageName),"mticon-logo");

Thank you very much.

agallardo1980

Re: Character Enconding problem in PageName

Post by agallardo1980 » Sat Jan 26, 2019 9:18 pm

Second part... If I modify the menu via admin and save changes, the menu.php is rewrited and I lose this changes :oops:

Any suggestion?

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Character Enconding problem in PageName

Post by Jachym » Sun Jan 27, 2019 2:38 pm

Usually an easy fix is to use the HTML symbol, ie. something like
&....;

User avatar
Jachym
Site Admin
Site Admin
Posts: 1686
Joined: Fri Aug 18, 2017 10:12 pm
Location: Brno, Czech Republic
Station model: WH1080
Software: Meteobridge
Contact:

Re: Character Enconding problem in PageName

Post by Jachym » Sun Jan 27, 2019 2:38 pm

When you save changes to the menu, these changes should be saved in separate text files in admin/menu/

agallardo1980

Re: Character Enconding problem in PageName

Post by agallardo1980 » Sun Jan 27, 2019 3:25 pm

Thank you very much Jachym. The simplest solutions always is better :D

I fix with this in config:
$pageName = 'MeteoAlmendralejo.es - Servicio Meteorológico de Almendralejo';

Now the sitemap XML work OK, before was empty :D

Thanks again.

Post Reply