Hi Brian, thanks for the tip. At the moment, I use urlencode, so I tried rawurlencode but that didn't seem to help either. Now my urls look something like:
http://www.example.com/tim%27s%20stuff But I still get the white screen. I suspect maybe the apostrophe is causing the code to break as it is a string quotation? Not sure what else I can do except turn off view caching :( thanks, Tony. On Feb 19, 1:28 pm, brian <[email protected]> wrote: > On Thu, Feb 19, 2009 at 8:00 AM, neverlosty <[email protected]> wrote: > > > Hi, > > > I'm trying to get view cache to work and everything is fine apart from > > when the URL has an apostrophe in it. > > eg,http://www.example.com/tim's+stuff > > > The cache engine turns it into something like tim_s_stuff.php > > But when I try to access the page again, I simply get a white screen > > of fiery death. > > > Does anyone know if there's something I can do to remedy this? > > Certainly. Don't use apostrophes in your URLs. If really you must do > so, encode them first. > > http://www.w3.org/Addressing/URL/4_URI_Recommentations.htmlhttp://en.wikipedia.org/wiki/Percent-encoding > > And apostrophes are an especially problematic character as certain > applications like to change them to "smart" quotes. Not very helpful > when the string they are in is to be used as a resource locator. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
