00875: AsSpaced function in UTF-8, RequestedPage variable fixes

Summary: AsSpaced function in UTF-8, RequestedPage variable fixes
Created: 2007-02-04 11:17
Status: Closed - included in 2.2.0-beta32
Category: CoreCandidate
From: Celok, Petko
Assigned:
Priority: 51
Version: any
OS: any?

Description:The variables {$Namespaced}, {$Titlespaced}and {$Groupspaced} are broken when the website is in UTF-8. These usefull variables don't work in skins or searches/pagelists, which can be very dissapointing. From the mailing list:

http://thread.gmane.org/gmane.comp.web.wiki.pmwiki.user/38118/

 You have to re-define the $RequestedPage page variable _after_ the XLPage() call:

 XLPage('fr','Site.XLPage-fr');
 $FmtPV['$RequestedPage'] = "'".htmlspecialchars($pagename, ENT_QUOTES)."'";

 Petko

Maybe the AsSpacedFunctionInUTF-8 can also be included in the xlpage-utf-8.php.

Tom aka Celok


There is a sample code that can be used, see Cookbook.As Spaced function in UTF-8. See also this thread on the mailing list. --Petko February 04, 2007, at 11:20 AM