[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread jlist9

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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
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,


Before you put the character in the DB, is it correctly displayed?

If you're using MySQL (and I can't stress strongly enough that this is a bad
choice), there are certain incantation (I don't know what they are) to tell
the JDBC driver (this is done with the DB URL string) to convert the String
into UTF-8 before sending it over the wire to the RDBMS.


   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

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread Neil.Lv

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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread jlist9

I'm not familiar with how Lift handles strings but if the encoding conversion
is what's missing, check out the Java String class, look for work encoding
or charset in java doc. Basically you can create a String with a specified
encoding and use getBytes() to convert it to a different encoding.

You can also try setting charset in your page to UTF-8. Maybe this is
the default in Lift.

On Sat, Oct 24, 2009 at 10:45 AM, Neil.Lv anim...@gmail.com wrote:

  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?

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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 10:45 AM, Neil.Lv anim...@gmail.com wrote:


  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 ?


All Strings in Scala (and JVM) should render themselves correctly (e.g.,
carry around enough information to be able to convert themselves to whatever
representation is needed).  Lift uses java.lang.String for all operations.

When Lift does an RDBMS operation, it passes a String to the underlying JDBC
driver.  It's up to the driver to convert from String representation to the
representation required by the underlying RDBMS (e.g., UTF-8).  You have to
consult the documentation for the JDBC driver that you're using in order to
specify correct encoding (in my experience, all the drivers [PostgreSQL, H2,
Derby, and Oracle] get it right by default except MySQL).  This link may
help:
http://dev.mysql.com/doc/refman/5.0/en/connector-j-reference-charsets.html



 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

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 10:51 AM, jlist9 jli...@gmail.com wrote:


 I'm not familiar with how Lift handles strings but if the encoding
 conversion
 is what's missing, check out the Java String class, look for work encoding
 or charset in java doc. Basically you can create a String with a specified
 encoding and use getBytes() to convert it to a different encoding.


Lift uses java.lang.String which does a great job of capturing all known
character sets.  See
http://www.j2ee.me/javase/6/docs/api/java/lang/String.html

The issue is not in Lift, but in the parameters for the JDBC driver.



 You can also try setting charset in your page to UTF-8. Maybe this is
 the default in Lift.

 On Sat, Oct 24, 2009 at 10:45 AM, Neil.Lv anim...@gmail.com wrote:
 
   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?

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 11:01 AM, jlist9 jli...@gmail.com wrote:


 Does Lift assume that it gets text from browser in UTF-8?


Lift relies on the container to convert bytes to String correctly.  All
containers except Tomcat do it right (using the encoding in the
Content-Type, and if that's absent defaulting to UTF-8).  Tomcat defaults to
platform encoding rather than UTF-8 encoding for translations.  Thus:
 private def makeUtf8(req: HTTPRequest) {
 req.setCharacterEncoding(UTF-8)
   }

This has little to do with putting stuff in the RDBMS.  Once it's a
java.lang.String, it's safe inside Lift.

I asked the does the text look right before it goes to the database
question to see if the issue might be the container decoding issue.




 On Sat, Oct 24, 2009 at 10:57 AM, David Pollak
 feeder.of.the.be...@gmail.com wrote:
 
 
  On Sat, Oct 24, 2009 at 10:51 AM, jlist9 jli...@gmail.com wrote:
 
  I'm not familiar with how Lift handles strings but if the encoding
  conversion
  is what's missing, check out the Java String class, look for work
 encoding
  or charset in java doc. Basically you can create a String with a
 specified
  encoding and use getBytes() to convert it to a different encoding.
 
  Lift uses java.lang.String which does a great job of capturing all known
  character sets.  See
  http://www.j2ee.me/javase/6/docs/api/java/lang/String.html
 
  The issue is not in Lift, but in the parameters for the JDBC driver.
 
 
  You can also try setting charset in your page to UTF-8. Maybe this is
  the default in Lift.
 
  On Sat, Oct 24, 2009 at 10:45 AM, Neil.Lv anim...@gmail.com wrote:
  
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?
 
 
 
 
 
  --
  Lift, the simply functional web framework http://liftweb.net
  Beginning Scala http://www.apress.com/book/view/1430219890
  Follow me: http://twitter.com/dpp
  Surf the harmonics
 
  
 

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread Neil.Lv

In my page the Charset is UTF-8, and thisi is my platform information.

Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
Java version: 1.6.0_05
Java home: C:\Java\jdk1.6.0_05\jre
Default locale: zh_CN, platform encoding: GBK
OS name: windows xp version: 5.1 arch: x86 Family: windows

The lift doesn't store the character using the encoding UTF-8
automaticly ?

Cheers,
  Neil

On Oct 25, 1:51 am, jlist9 jli...@gmail.com wrote:
 I'm not familiar with how Lift handles strings but if the encoding conversion
 is what's missing, check out the Java String class, look for work encoding
 or charset in java doc. Basically you can create a String with a specified
 encoding and use getBytes() to convert it to a different encoding.

 You can also try setting charset in your page to UTF-8. Maybe this is
 the default in Lift.

 On Sat, Oct 24, 2009 at 10:45 AM, Neil.Lv anim...@gmail.com wrote:

   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?

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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread Neil.Lv

  Yeah, i using the mysql to test my app.

  The is in my props file.
  ##
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://localhost/hello
db.user=root
db.password=
  #

Cheers,
  Neil

On Oct 25, 1:51 am, jlist9 jli...@gmail.com wrote:
 I'm not familiar with how Lift handles strings but if the encoding conversion
 is what's missing, check out the Java String class, look for work encoding
 or charset in java doc. Basically you can create a String with a specified
 encoding and use getBytes() to convert it to a different encoding.

 You can also try setting charset in your page to UTF-8. Maybe this is
 the default in Lift.

 On Sat, Oct 24, 2009 at 10:45 AM, Neil.Lv anim...@gmail.com wrote:

   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?

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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
On Sat, Oct 24, 2009 at 11:03 AM, Neil.Lv anim...@gmail.com wrote:


  Yeah, i using the mysql to test my app.

  The is in my props file.
  ##
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://localhost/hello


The above line is the problem.  You're not telling the JDBC driver to
convert Strings to UTF-8 before shipping them over the wire to MySQL.


db.user=root
db.password=
  #

 Cheers,
   Neil

 On Oct 25, 1:51 am, jlist9 jli...@gmail.com wrote:
  I'm not familiar with how Lift handles strings but if the encoding
 conversion
  is what's missing, check out the Java String class, look for work
 encoding
  or charset in java doc. Basically you can create a String with a
 specified
  encoding and use getBytes() to convert it to a different encoding.
 
  You can also try setting charset in your page to UTF-8. Maybe this is
  the default in Lift.
 
  On Sat, Oct 24, 2009 at 10:45 AM, Neil.Lv anim...@gmail.com wrote:
 
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?

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread jlist9

I've had problems with system/JVM default locale before.
When no encoding/charset is specified in new String(bytes[] data)
or String getBytes(), it uses the default locale. When the default
locale is not UTF-8, there will be a problem. I'm not sure where
the problem is, though.

You can capture the HTTP traffic and see what encoding it
uses to determine in what link in the request-response-storage
chain the encoding got wrong.

BTW, Just saw David's reply. Looks like he's found the problem.

On Sat, Oct 24, 2009 at 10:59 AM, Neil.Lv anim...@gmail.com wrote:

 In my page the Charset is UTF-8, and thisi is my platform information.

 Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
 Java version: 1.6.0_05
 Java home: C:\Java\jdk1.6.0_05\jre
 Default locale: zh_CN, platform encoding: GBK
 OS name: windows xp version: 5.1 arch: x86 Family: windows

 The lift doesn't store the character using the encoding UTF-8
 automaticly ?

 Cheers,
  Neil

 On Oct 25, 1:51 am, jlist9 jli...@gmail.com wrote:
 I'm not familiar with how Lift handles strings but if the encoding conversion
 is what's missing, check out the Java String class, look for work encoding
 or charset in java doc. Basically you can create a String with a specified
 encoding and use getBytes() to convert it to a different encoding.

 You can also try setting charset in your page to UTF-8. Maybe this is
 the default in Lift.

 On Sat, Oct 24, 2009 at 10:45 AM, Neil.Lv anim...@gmail.com wrote:

   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?

 


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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread Neil.Lv


  I have added the characterEncoding in the DB url, and it works now.

  ###
db.driver=com.mysql.jdbc.Driver
db.url=jdbc:mysql://localhost/hello?characterEncoding=gbk
db.user=root
db.password=
  ###

  Thanks very much !  :)

Cheers,
  Neil


On Oct 25, 2:09 am, David Pollak feeder.of.the.be...@gmail.com
wrote:
 On Sat, Oct 24, 2009 at 11:03 AM, Neil.Lv anim...@gmail.com wrote:

   Yeah, i using the mysql to test my app.

   The is in my props file.
   ##
     db.driver=com.mysql.jdbc.Driver
     db.url=jdbc:mysql://localhost/hello

 The above line is the problem.  You're not telling the JDBC driver to
 convert Strings to UTF-8 before shipping them over the wire to MySQL.



     db.user=root
     db.password=
   #

  Cheers,
    Neil

  On Oct 25, 1:51 am, jlist9 jli...@gmail.com wrote:
   I'm not familiar with how Lift handles strings but if the encoding
  conversion
   is what's missing, check out the Java String class, look for work
  encoding
   or charset in java doc. Basically you can create a String with a
  specified
   encoding and use getBytes() to convert it to a different encoding.

   You can also try setting charset in your page to UTF-8. Maybe this is
   the default in Lift.

   On Sat, Oct 24, 2009 at 10:45 AM, Neil.Lv anim...@gmail.com wrote:

 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?

 --
 Lift, the simply functional web frameworkhttp://liftweb.net
 Beginning Scalahttp://www.apress.com/book/view/1430219890
 Follow me:http://twitter.com/dpp
 Surf the harmonics

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



[Lift] Re: How can i store GBK charactor into the DB ?

2009-10-24 Thread David Pollak
Everywhere that Lift converts String - Array[Byte], it uses UTF-8 for
encoding.  That happens when XML and Strings are converted to HTTP
responses.

On Sat, Oct 24, 2009 at 11:15 AM, jlist9 jli...@gmail.com wrote:


 I've had problems with system/JVM default locale before.
 When no encoding/charset is specified in new String(bytes[] data)
 or String getBytes(), it uses the default locale. When the default
 locale is not UTF-8, there will be a problem. I'm not sure where
 the problem is, though.

 You can capture the HTTP traffic and see what encoding it
 uses to determine in what link in the request-response-storage
 chain the encoding got wrong.

 BTW, Just saw David's reply. Looks like he's found the problem.

 On Sat, Oct 24, 2009 at 10:59 AM, Neil.Lv anim...@gmail.com wrote:
 
  In my page the Charset is UTF-8, and thisi is my platform information.
 
  Apache Maven 2.2.1 (r801777; 2009-08-07 03:16:01+0800)
  Java version: 1.6.0_05
  Java home: C:\Java\jdk1.6.0_05\jre
  Default locale: zh_CN, platform encoding: GBK
  OS name: windows xp version: 5.1 arch: x86 Family: windows
 
  The lift doesn't store the character using the encoding UTF-8
  automaticly ?
 
  Cheers,
   Neil
 
  On Oct 25, 1:51 am, jlist9 jli...@gmail.com wrote:
  I'm not familiar with how Lift handles strings but if the encoding
 conversion
  is what's missing, check out the Java String class, look for work
 encoding
  or charset in java doc. Basically you can create a String with a
 specified
  encoding and use getBytes() to convert it to a different encoding.
 
  You can also try setting charset in your page to UTF-8. Maybe this is
  the default in Lift.
 
  On Sat, Oct 24, 2009 at 10:45 AM, Neil.Lv anim...@gmail.com wrote:
 
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?
 
  
 

 



-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics

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