cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 潛龍勿用 (JIRA) <j...@apache.org>
Subject [jira] Commented: (CAY-1550) don't support multibyte
Date Sat, 19 Mar 2011 14:42:29 GMT

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

潛龍勿用 commented on CAY-1550:
---------------------------

 Before inserted into the database,print data,it is normal.After inserted into the database,view
database,data is garbled,Are all question mark,reading from database and print,Display is
all question mark too.
       ------------------ 原始邮件 ------------------

发件人:Andrus Adamchik (JIRA) 
时 间:2011/03/15 17:25:29 星期二
收件人:shinesoft@21cn.com
抄送人:
主 题:[jira] Commented: (CAY-1550) don't support multibyte


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

Andrus Adamchik commented on CAY-1550:
--------------------------------------

are you actually refetching the object via a SelectQuery before second output? As otherwise
you are not confirming that the data is coming correctly from DB.


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


---------------------------------------
[1]卡巴斯基,价值非凡的安全保护 

----------------------------------------------------------------------------------------
[1] http://www.kaspersky.com.cn/business/index.htm 


> 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

Mime
View raw message