ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daigo Kobayashi (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Commented: (IBATIS-349) NodeletParser ignore XML encoding.
Date Tue, 28 Nov 2006 15:44:24 GMT
    [ http://issues.apache.org/jira/browse/IBATIS-349?page=comments#action_12453970 ] 
Daigo Kobayashi commented on IBATIS-349:

XML file have it's own encoding. So we should not ignore that encoding. If we follow this
solution, we have to set encoding and ignore xml's encoding.

And xml specification says, if encoding is not specified parser must use UTF-8 or UTF-16 and
if specified follow it. So this solution violate xml's encoding specification.

> 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


View raw message