anchor.diff:  
           response.addCookie( prefs );
   
  -        response.sendRedirect( wiki.getBaseURL()+"Wiki.jsp" );
  +        response.sendRedirect( wiki.getBaseURL()+"UserPreferences.jsp" );
       }
       else if( clear != null )
       {
  
positive.code: 
  <%
      String pagereq = "UserPreferences";
      String headerTitle = "";
  
      NDC.push( wiki.getApplicationName()+":"+pagereq );
      
      String userName = wiki.getUserName( request );
      if( userName == null ) 
      {
          userName="";
      }
  
      WikiPage wikipage = wiki.getPage( pagereq );
  
      WikiContext wikiContext = new WikiContext( wiki, wikipage );
      pageContext.setAttribute( WikiTagBase.ATTR_CONTEXT,
                                wikiContext );
  
      String ok = request.getParameter("ok");
      String clear = request.getParameter("clear");
  
      if( ok != null || "save".equals(request.getParameter("action")) )
      {
          //
          //  Servlet 2.2 API assumes all incoming data is in ISO-8859-1, so when
          //  returning UTF-8, you get the right bytes but with the wrong encoding.
          //
          //  For more information, see:
          //    http://www.jguru.com/faq/view.jsp?EID=137049
          //
          String name;
          name = new String( request.getParameter("username").getBytes("ISO-8859-1"), "UTF-8");
  
          UserProfile profile = new UserProfile();
          profile.setName( name );
  
          Cookie prefs = new Cookie( WikiEngine.PREFS_COOKIE_NAME, 
                                     profile.getStringRepresentation() );
  
negative.code:         prefs.setMaxAge( 0 );
          response.addCookie( prefs );
  
          response.sendRedirect( wiki.getBaseURL()+"UserPreferences.jsp" );
      }       
  
      response.setContentType("text/html; charset="+wiki.getContentEncoding() );
      String contentPage = "templates/"+skin+"/ViewTemplate.jsp";
  %>
  
  <wiki:Include page="<%=contentPage%>" />
  
  <%
      NDC.pop();
  