Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] xml-export: Inconsistent enconding in export file

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] xml-export: Inconsistent enconding in export file

Chronological Thread 
  • From: "GW Brown, Information Systems and Computing" <>
  • To: Loris Bennett <>,
  • Subject: Re: [grouper-users] xml-export: Inconsistent enconding in export file
  • Date: Thu, 09 Oct 2008 16:17:13 +0100

Hi Loris,

I think I've fixed this now - in CVS. The code which exports group and stem attributes was 'escaping' the output, but the source name was not being escaped.

I modified:
private void _writeSubjectSourceMetaData(Source sa)
in XmlExporter so that name is escaped - id was escaped already.

this.xml.internal_puts("name=" + Quote.single( XML.escape(sa.getName()) ) );

Out of interest, what did you have in sources.xml - ä or &#228;? When I tried ä SourceManager would not parse sources.xml.


--On 11 September 2008 12:24 +0200 Loris Bennett <> wrote:


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'

<subjectType name='person'/>

<!-- 'fub' -->
<stem extension='fub'
displayExtension='FU Berlin'
displayName='FU Berlin'
<description>Freie Universit&#228;t Berlin</description>

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

Is this a known issue?


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

GW Brown, Information Systems and Computing

Archive powered by MHonArc 2.6.16.

Top of Page