Path

ez projects / nmcontent / forum / general / structure import and names...


Structure import and names containing accent character

You need to be logged in to post messages in the forums. New users may register here.

Yassine HANINI

Member since:
10 December 2010

Posts: 7

Monday 14 November 2011 12:11:51 pm

Hi,

Thank you for this great extension. It helps me a lot.

If labels contains accent characters, it will be save as html entitites (école instead of école)

I fixed this in the module structureimport.php by changing the following line




// format structure


        $structure = $class->formatStructure($_POST['contentStructure']);




by




// format structure


        $structure = $class->formatStructure(html_entity_decode ($_POST['contentStructure'], ENT_COMPAT, "UTF-8"));




Again, thanks a lot
Up

Eirik Alfstad Johansen

Member since:
09 January 2008

Posts: 35

Monday 14 November 2011 12:19:59 pm

Hi Yassine,

Thanks for the tip. However, this has actually already been fixed:

http://projects.ez.no/nmcontent/subversion/7

I'm guessing you're using a slightly older version.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Up

Yassine HANINI

Member since:
10 December 2010

Posts: 7

Monday 14 November 2011 1:41:42 pm

You're Right. am using an old version :)

Thank you very much
Up

You need to be logged in to post messages in the forums. New users may register here.