I just use the User's edit method that the ProtoUser ?

  What's method that i can do for conventing GBK to UTF-8 before
saving ?

Cheers,
  Neil

On Oct 25, 1:34 am, jlist9 <jli...@gmail.com> wrote:
> It sounds like you aren't converting GBK encoding to UTF-8
> before you store the text?
>
> On Sat, Oct 24, 2009 at 10:10 AM, Neil.Lv <anim...@gmail.com> wrote:
>
> > Hi all,
>
> >   I have a silly question about the Character Encoding in lift.
>
> >   My table is charset is utf8 in database.
>
> >   ###
> >   CREATE TABLE `users` ( .....
> >   ) ENGINE=InnoDB  DEFAULT CHARSET=utf8;
> >   ###
>
> >   And in my boot.scala file:
> >   ### the default code
> >     LiftRules.early.append(makeUtf8)
> >    private def makeUtf8(req: HTTPRequest) {
> >      req.setCharacterEncoding("UTF-8")
> >    }
> >   ###
>
> >   Now i want to store chinese character into my database, and it's
> > not a chinese char,
>
> >   it's garbled and doesn't show correctly in the database and page.
>
> >   How can i store the chinese char into my database ?
>
> >   Thanks for any suggestion !
>
> > Cheers,
> >  Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@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