Modify makeUtf8 like so:

  private def makeUtf8(req: HTTPRequest) {
    req.setCharacterEncoding("UTF-8")
  }

Note the change in signature.

- IRC

On 06/01/10 5:47 PM, Mads Hartmann wrote:
Aha! It almost compiles now. There's just one last error:

[INFO] Compiling 8 source files to /Users/Mads/Projects/scalableKvidr2/
target/classes at 1262780161026
[ERROR] /Users/Mads/Projects/scalableKvidr2/src/main/scala/bootstrap/
liftweb/Boot.scala:61: error: type mismatch;
[INFO]  found   : (javax.servlet.http.HttpServletRequest) =>  Unit
[INFO]  required: (net.liftweb.http.provider.HTTPRequest) =>  Any
[INFO]     LiftRules.early.append(makeUtf8)
[INFO]                            ^
[ERROR] one error found

On Jan 6, 12:59 pm, Jeppe Nejsum Madsen<je...@ingolfs.dk>  wrote:
Mads Hartmann<mads...@gmail.com>  writes:
Again, I really appreciate you guys helping me out :)

@Indrajit I just tried with the dependency you declared as the only
lift related dependency. I get the following error.

<dependency>
   <groupId>net.liftweb</groupId>
   <artifactId>lift-mapper</artifactId>
   <version>1.1-M8</version>
</dependency>

Note, Lift 1.1 is not source compatible with 1.0. You need to change
your code (in a few places) Specifically, it seems you need to add

import net.liftweb.common._

to Boot.scala

/Jeppe
-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to