You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Fabian Gorsler (JIRA)" <ji...@apache.org> on 2006/11/13 16:31:39 UTC

[jira] Updated: (OFBIZ-453) XML import from Webtools Entity Export fails when (e.g.) umlauts are in the via Webtools generated XML files

     [ http://issues.apache.org/jira/browse/OFBIZ-453?page=all ]

Fabian Gorsler updated OFBIZ-453:
---------------------------------

    Attachment: patch.txt

This is the patch. HTH!

> XML import from Webtools Entity Export fails when (e.g.) umlauts are in the via Webtools generated XML files
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-453
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-453
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: SVN trunk
>         Environment: Linux 2.6.18.1, x86_64 with UTF-8 environment and file system / The problem exists on Windows XP, too.
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
> Apache OFBiz (SVN Trunk)
>            Reporter: Fabian Gorsler
>         Attachments: patch.txt
>
>
> Hi,
> if you have entities filled up with (e.g.) German umlauts, you won't be able to import them via Webtools. The characters are writtend directly to the XML file and the parser can't read them while import. In order to import the files you would have to change all umlauts to their corresponding XML entities (e.g. Ä --> &#228;). Files with XML entites can be imported w/o any problems and the data can be stored and represented correctly.
> The attached patch fixes the issue. The patch replaces each char with an value bigger than 0x7F with &#NNN; - this means that there will just the ASCII chars will appear in the XML exports. CDATA doesn't need to be exported this way. Their content will be "untouched". All changes to characters will be logged to the INFO-facility - this could perhaps be switched to the DEBUG-facility. Only org.ofbiz.entity.GenericEntity was changed, no other files were modified for this patch.
> Please note that I justed tested this case with German umlauts. Please check the behavior with other special characters, too.
> HTH and go for the release. :-)
> For more information see this thread on ofbiz-user: http://mail-archives.apache.org/mod_mbox/incubator-ofbiz-user/200611.mbox/%3c455040E2.4090306@linuxterminal.com%3e

-- 
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