grouper-users - Fetching Stems with Umlauts
Subject: Grouper Users - Open Discussion List
List archive
- From: Mirko Tasler <>
- To: "" <>
- Subject: Fetching Stems with Umlauts
- Date: Wed, 02 Sep 2009 10:29:14 +0200
Dear Grouper-Users,
here at Freie Universität Berlin, we are creating Stems with umlauts using GrouperClient like in *1 with "test:umlautä".
This works fine, and a quick "SELECT display_name FROM grouper_stems WHERE display_name LIKE 'test:%umlau%'" also equals to the originating stemName.
However, when I try to look up this Stem with GrouperClient with *2,
the found Stem name in the WsStem[] Array (fetched with found[0].getName()) has no umlauts but instead a char with the value "0xefbfbd"/65533 (i.e., invalid Unicode).
The response from the Web Service at *3 seems correct.
How do I fetch the correct name? Any help would be greatly appreciated!
Thanks,
Mirko Tasler
*1 Code snippet saving Stem
String stemName="test:umlautä";
WsStem wsStem = new WsStem();
wsStem.setName(stemName);
WsStemToSave wsStemToSave = new WsStemToSave();
wsStemToSave.setWsStemLookup(new WsStemLookup(stemName, null));
wsStemToSave.setWsStem(wsStem);
gcStemSave.addStemToSave(wsStemToSave);
gcStemSave.assignTxType(GcTransactionType.NONE).execute();
*2 Code snippet looking up Stem
String parentName="test";
WsStemQueryFilter wsStemQueryFilter = new WsStemQueryFilter();
wsStemQueryFilter.setParentStemName(parentName);
wsStemQueryFilter.setStemQueryFilterType("FIND_BY_PARENT_STEM_NAME");
wsStemQueryFilter.setParentStemNameScope("ALL_IN_SUBTREE");
GcFindStems gcFindStems = new GcFindStems();
WsFindStemsResults result = gcFindStems.assignStemQueryFilter(wsStemQueryFilter).execute();
WsStem[] found=result.getStemResults();
int c=found[0].getName().charAt(found[0].getName().size()-1);
(leads to c==65533, should be 228)
*3 Response snippet from the WS
<stemResults>
<WsStem>
<extension>umlaut[0xe4]</extension>
<displayExtension>umlaut[0xe4]</displayExtension>
<description>test:umlaut[0xe4]</description>
<displayName>test:umlaut[0xe4]</displayName>
<name>test:umlaut[0xe4]</name>
<uuid>2ad6c0e2-8f0b-4cdc-acb7-04e142e2588e</uuid>
</WsStem>
</stemResults>
- Fetching Stems with Umlauts, Mirko Tasler, 09/02/2009
- RE: [grouper-users] Fetching Stems with Umlauts, Chris Hyzer, 09/12/2009
- Re: [grouper-users] Fetching Stems with Umlauts, Mirko Tasler, 09/14/2009
- RE: [grouper-users] Fetching Stems with Umlauts, Chris Hyzer, 09/14/2009
- Re: [grouper-users] Fetching Stems with Umlauts, Mirko Tasler, 09/15/2009
- RE: [grouper-users] Fetching Stems with Umlauts, Chris Hyzer, 09/15/2009
- Re: [grouper-users] Fetching Stems with Umlauts, Mirko Tasler, 09/15/2009
- RE: [grouper-users] Fetching Stems with Umlauts, Chris Hyzer, 09/14/2009
- Re: [grouper-users] Fetching Stems with Umlauts, Mirko Tasler, 09/14/2009
- RE: [grouper-users] Fetching Stems with Umlauts, Chris Hyzer, 09/12/2009
Archive powered by MHonArc 2.6.16.