Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] Lite UI 1.5.0: accented characters displayed as "?"

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] Lite UI 1.5.0: accented characters displayed as "?"


Chronological Thread 
  • From: "GW Brown, Information Systems and Computing" <>
  • To: Chris Hyzer <>, ,
  • Subject: RE: [grouper-users] Lite UI 1.5.0: accented characters displayed as "?"
  • Date: Fri, 05 Feb 2010 15:22:26 +0000

I've tried replicating the problem. At first I added utf8 accented characters in group names - and they appeared OK. I tried altering a couple of labels in nav.properties - one each for the two UIs, and they also worked.

I then checked the encoding for nav.propeties and it came up as Ansi (Notepad++). I switched it to utf8 (and had to fix the accented characters) and restarted the webapp. Now, somewhat bizarrely, I get problems. I did a quick Google on ResourceBundles and UTF8 and apparently this is a known problem: <http://www.thoughtsabout.net/blog/archives/000044.html>.

Dominique: what encoding have you got for your nav.properties file?

Gary


--On 29 January 2010 01:36 -0500 Chris Hyzer
<>
wrote:

That's not good...

The problem is most things are done in Ajax, so setting the content type
isn't that simple (unless someone has a suggestion :) ). I have been
experimenting and haven't found something that works yet.

You can try these two tweaks below, but please let me know exactly where
you are having the problem, is it in the static content from the
nav.properties, is it in the data (e.g. group names), is it in the DHTML
controls (the combobox or menu), etc

Btw, my understanding is that we do want UTF-8, right?

Thanks,
Chris

FILE1

edu.internet2.middleware.grouper.ui.util.HttpContentType

FROM:
/** xml content type */
TEXT_XML("text/xml"),

/** text html content type */
TEXT_HTML("text/html"),

/** application json content type */
APPLICATION_JSON("application/json"),


TO:

/** xml content type */
TEXT_XML("text/xml; charset=UTF-8"),

/** text html content type */
TEXT_HTML("text/html; charset=UTF-8"),

/** application json content type */
APPLICATION_JSON("application/json; charset=UTF-8"),

FILE 2

webapp\grouperUi\appHtml\grouper.html

FROM:
<head>

<script type="text/javascript"
src="../public/assets/dhtmlx/dhtmlxcommon.js"></script>



TO:

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<script type="text/javascript"
src="../public/assets/dhtmlx/dhtmlxcommon.js"></script>

-----Original Message-----
From: Dominique Petitpierre
[mailto:]
Sent: Thursday, January 28, 2010 12:16 PM
To:

Subject: [grouper-users] Lite UI 1.5.0: accented characters displayed as
"?"

Hello,

in the process of configuring an installation of Grouper 1.5.0, I
encountered the following problem with the Lite UI:

The Lite UI does not display accented characters correctly in my
context: it displays them as "?" everywhere. No problem with the admin
Grouper UI.

I tried to modify "Content-Type" to append an explicit
";charset=iso-8859-1" in various places like
grouperUi/public/assets/js/jquery.js and to change 'encoding="UTF-8"'
to 'encoding="iso-8859-1"' at the beginning of
grouperUi/appHtml/grouper.html (to match what is done in
WEB-INF/jsp/template.jsp), but without success.

- What should I modify to have accented characters displayed
correctly in both the Lite UI and the admin Grouper UI?

Thanks in adavance for your help.

--
Meilleures salutations,
Dominique Petitpierre

Mr Dominique Petitpierre
Division Informatique
University of Geneva



----------------------
GW Brown, Information Systems and Computing




Archive powered by MHonArc 2.6.16.

Top of Page