Hi:

Finnally, I got an answer to do the work.

My enviroment is like this:    

tdk1.1a13,    chinese version of win2000 +  mysql
tr.prop   is set to be  UTF-8



When some chinese charactor is key in a form and submited:

        firstname = para.getString("abc");

        firstname = new String(firstname.getBytes("8859_1"),"UTF-8");
        Log.info( "FIRST NAME can SEE==" + firstname);

        firstname = new String(firstname.getBytes("GBK"),"8859_1");
        Log.info( "FIRST NAME can SAVE==" + firstname);


Although everything now works, but I myself still do not understand the above code(it 
is only an experiment result).  Can anyone explain this?


Regards

fanyun


-----Original Message-----
From: Daniel Patterson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 11:46 AM
To: [EMAIL PROTECTED]
Subject: Re: is mysql version of tdk support UTF-8


You can always do a bit of workaround:

  http://www.oop-reserch.com/mysql.html

daniel
-- 
Signature at:  http://www.mel.adaptivetech.com.au/~danpat/signature.txt

On Thu, May 24, 2001 at 11:39:12AM +0800, fanyun wrote:
> Hi:
> 
> Thanks for your information.   But now where should I go?
> 
> Should I move to postgress or instantDB or something else?  Which is the recommented 
>consider with Compatibility and performance?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to