Skip to Content.
Sympa Menu

grouper-users - xml-export: Inconsistent enconding in export file

Subject: Grouper Users - Open Discussion List

List archive

xml-export: Inconsistent enconding in export file


Chronological Thread 
  • From: Loris Bennett <>
  • To:
  • Subject: xml-export: Inconsistent enconding in export file
  • Date: Thu, 11 Sep 2008 12:24:43 +0200

Hi,

An import of an export from Grouper gave me the following error:

[java] [Fatal Error] export-cats-and-dogs.xml:145:30: Invalid byte 2
of 3-byte UTF-8 sequence.

Looking at the XML, I see that different encoding is used for the umlaut
in the 'name' attribute of the 'source' tag to that used for the
contents of the 'description' tag.

<source id='fub'
name='Freie Universität Berlin'

class='edu.internet2.middleware.subject.provider.JDBCSourceAdapter'
>
<subjectType name='person'/>
</source>
</subjectSourceMetaData>
</metadata>
<data>

<!-- 'fub' -->
<stem extension='fub'
displayExtension='FU Berlin'
name='fub'
displayName='FU Berlin'
id='148c85b9-9ed8-4721-b33b-65c71025f938'
>
<description>Freie Universit&#228;t Berlin</description>

Replacing the 'ä' with '&#228;' allows the import to succeed.

Is this a known issue?

Loris

--
Dr. Loris Bennett
Computer Centre
Freie Universität Berlin
Berlin, Germany




Archive powered by MHonArc 2.6.16.

Top of Page