You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "潛龍勿用 (JIRA)" <ji...@apache.org> on 2011/03/15 09:44:29 UTC

[jira] Issue Comment Edited: (CAY-1550) don't support multibyte

    [ https://issues.apache.org/jira/browse/CAY-1550?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006837#comment-13006837 ] 

潛龍勿用 edited comment on CAY-1550 at 3/15/11 8:43 AM:
----------------------------------------------------

Andrus Adamchik (JIRA),hi

System.out.println(artist.getName());

Output content as follows:

潛龍勿用
[11-03-15 16:24:45.110] {http://*:8080-2} --- will run 1 query.
[11-03-15 16:24:45.111] {http://*:8080-2} --- transaction started.
[11-03-15 16:24:45.112] {http://*:8080-2} INSERT INTO ARTIST (DATE_OF_BIRTH, ID, NAME) VALUES (?, ?, ?)
[11-03-15 16:24:45.113] {http://*:8080-2} [bind: 1->ID:218, 2->NAME:'潛龍勿用']
[11-03-15 16:24:45.114] {http://*:8080-2} === updated 1 row.
[11-03-15 16:24:45.138] {http://*:8080-2} +++ transaction committed.
潛龍勿用


=============

潛龍勿用,shinesoft@21cn.com
2011-03-15 


      was (Author: 潛龍勿用):
    Andrus Adamchik (JIRA),hi

System.out.println(artist.getName());

Output content as follows:

��勿用
[11-03-15 16:24:45.110] {http://*:8080-2} --- will run 1 query.
[11-03-15 16:24:45.111] {http://*:8080-2} --- transaction started.
[11-03-15 16:24:45.112] {http://*:8080-2} INSERT INTO ARTIST (DATE_OF_BIRTH, ID, NAME) VALUES (?, ?, ?)
[11-03-15 16:24:45.113] {http://*:8080-2} [bind: 1->ID:218, 2->NAME:'��勿用']
[11-03-15 16:24:45.114] {http://*:8080-2} === updated 1 row.
[11-03-15 16:24:45.138] {http://*:8080-2} +++ transaction committed.
��勿用


=============

��勿用,shinesoft@21cn.com
2011-03-15 

  
> don't support multibyte
> -----------------------
>
>                 Key: CAY-1550
>                 URL: https://issues.apache.org/jira/browse/CAY-1550
>             Project: Cayenne
>          Issue Type: Task
>          Components: Core Library, Database integration
>    Affects Versions: 3.0.1
>         Environment: resin pro 4.0.15 
> win7 32bit
> sun jdk 1.6.24
>            Reporter: 潛龍勿用
>   Original Estimate: 612h
>  Remaining Estimate: 612h
>
> project encoding is utf-8
> HTML page encoding is utf-8
> request.setCharacterEncoding("utf-8");
> MySQL database encoding is utf-8
> JDBC URL is "jdbc:mysql://localhost:3306/test?useUnicode=true&amp;characterEncoding=utf-8"
> code:
> String name = request.getParameter("name");    //name value is Chinese string "潛龍勿用"
> ObjectContext context = DataContext.createDataContext();
>  	Artist artist = context.newObject(Artist.class);
>     	artist.setName(name);
>     	out.println(name);    //output string is "潛龍勿用",is normal.
>         context.commitChanges();    //after insert into database,view table record is "????"
> get table record from database and view at page,view "????" too.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira