Skip to Content.
Sympa Menu

grouper-users - Fetching Stems with Umlauts

Subject: Grouper Users - Open Discussion List

List archive

Fetching Stems with Umlauts

Chronological Thread 
  • 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!


Mirko Tasler

*1 Code snippet saving Stem
String stemName="test:umlautä";
WsStem wsStem = new WsStem();
WsStemToSave wsStemToSave = new WsStemToSave();
wsStemToSave.setWsStemLookup(new WsStemLookup(stemName, null));

*2 Code snippet looking up Stem
String parentName="test";
WsStemQueryFilter wsStemQueryFilter = new WsStemQueryFilter();
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

Archive powered by MHonArc 2.6.16.

Top of Page