[ 
http://issues.apache.org/jira/browse/IBATIS-349?page=comments#action_12454155 ] 
            
Jeff Butler commented on IBATIS-349:
------------------------------------

I've committed some changes for IBATIS-373 that allow iBATIS to build the 
SqlMapClient from an InputStream rather than a Reader.  This delegates the 
encoding issue to the parser - where it should be IMHO.  You can use it like 
this:

String resource = "myconfig/SqlMapConfig.xml";
InputStream inputStream = Resources.getResourceAsStream(resource);
SqlMapClient client = SqlMapClientBuilder.buildSqlMapClient(inputStream);

Please give this a try (or you can wait for 2.3.0 later this week).  If one of 
these alternatives resolves the issue, then I'd like to close this ticket.

Thanks for all the feedback!


> NodeletParser ignore XML encoding.
> ----------------------------------
>
>                 Key: IBATIS-349
>                 URL: http://issues.apache.org/jira/browse/IBATIS-349
>             Project: iBatis for Java
>          Issue Type: Bug
>          Components: SQL Maps
>    Affects Versions: 2.2.0
>         Environment: Windows XP(Japanese)
> jdk 1.5.0_06
>            Reporter: Daigo Kobayashi
>         Attachments: Resources.java, Resources.patch, Resources.patch
>
>
> NodeletParser ignore XML encoding.  Because NodeletParser use Resources, and 
> in some case Resources use ClassLoader#getResourceAsStream with OS default 
> encoding not XML's.
> In some environment, for example OS use Shift_JIS and XML use UTF-8, iBatis 
> doesn't work correctly because of broken character. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to