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
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:


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

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


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