grouper-users - RE: [grouper-users] internationalization liteUI
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: Wallaert-Taquet Brigitte <>
- Cc: "" <>, "" <>, THIA Jean-Marie <>
- Subject: RE: [grouper-users] internationalization liteUI
- Date: Thu, 8 Sep 2011 04:16:14 +0000
- Accept-language: en-US
I went back to 1.6.3, and added in the changes we have been discussing, and it works fine… what DB do you have? Or is the subject search ldap? https://spaces.internet2.edu/display/Grouper/Grouper+UI+internationalization I committed the changes to 1.6.3 (and 2.0.0), or the patch is below… Thanks, Chris ############################# PATCH BELOW ######################### ### Eclipse Workspace Patch 1.0 #P grouper-ui_v1_6 Index: java/src/edu/internet2/middleware/grouper/ui/util/HttpContentType.java =================================================================== --- java/src/edu/internet2/middleware/grouper/ui/util/HttpContentType.java (revision 7090) +++ java/src/edu/internet2/middleware/grouper/ui/util/HttpContentType.java (working copy) @@ -14,13 +14,13 @@ TEXT_PLAIN("text/plain"),
/** xml content type */ - TEXT_XML("text/xml"), + TEXT_XML("text/xml;charset=utf-8"),
/** text html content type */ TEXT_HTML("text/html"),
/** application json content type */ - APPLICATION_JSON("application/json"), + APPLICATION_JSON("application/json;charset=utf-8"),
/** text comma separated values */ TEXT_CSV("text/csv"); Index: java/src/edu/internet2/middleware/grouper/ui/GrouperUiFilter.java =================================================================== --- java/src/edu/internet2/middleware/grouper/ui/GrouperUiFilter.java (revision 7090) +++ java/src/edu/internet2/middleware/grouper/ui/GrouperUiFilter.java (working copy) @@ -645,6 +645,8 @@
try {
+ servletRequest.setCharacterEncoding("UTF-8"); +
httpServletRequest = new GrouperRequestWrapper((HttpServletRequest) servletRequest); httpServletRequest = initRequest(httpServletRequest, response); Index: conf/resources/grouper/media.properties =================================================================== --- conf/resources/grouper/media.properties (revision 7090) +++ conf/resources/grouper/media.properties (working copy) @@ -702,3 +702,10 @@ # put a URL here where the result (attributeDefNameId, displayName, name, description) will be submitted back # blank if same domain and just call opener directly attributeDefNamePicker.defaultSettings.submitResultToUrl = + +################################### +## Internationalization +################################### + +# this should be true unless troubleshooting... +convertInputToUtf8 = true Index: java/src/edu/internet2/middleware/grouper/j2ee/GrouperRequestWrapper.java =================================================================== --- java/src/edu/internet2/middleware/grouper/j2ee/GrouperRequestWrapper.java (revision 6841) +++ java/src/edu/internet2/middleware/grouper/j2ee/GrouperRequestWrapper.java (working copy) @@ -376,11 +376,20 @@ public String getParameter(String name) {
if (!this.multipart) { -
- return this.wrapped.getParameter(name); + String param = this.wrapped.getParameter(name); + if (param != null && StringUtils.equals("GET", this.getMethod()) && TagUtils.mediaResourceBoolean("convertInputToUtf8", true)) { + try { + byte[] bytes = param.getBytes("ISO-8859-1"); + param = new String(bytes, "UTF-8"); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + return param; } -
+ Object objectSubmitted = this.parameterMap.get(name); + //if not found, then return null if (objectSubmitted == null) { return null; ########################### PATCH END ########################### From: Wallaert-Taquet Brigitte [mailto:]
Hello, Grouper 2.0.0 is coming out soon (today?) Any chance you can use that version, or are you set on 1.6.3? If 1.6.3 I will try to use that version and look into it. Thanks, Chris
-- Brigitte Wallaert-Taquet Ingénieure d'études Chargée d'étude Espace collaboratif de Documents Université Lille1 Sciences et Technologies |
- Re: [grouper-users] internationalization liteUI, Wallaert-Taquet Brigitte, 09/01/2011
- RE: [grouper-users] internationalization liteUI, Chris Hyzer, 09/01/2011
- Re: [grouper-users] internationalization liteUI, Wallaert-Taquet Brigitte, 09/02/2011
- RE: [grouper-users] internationalization liteUI, Chris Hyzer, 09/04/2011
- Re: [grouper-users] internationalization liteUI, Wallaert-Taquet Brigitte, 09/05/2011
- RE: [grouper-users] internationalization liteUI, Chris Hyzer, 09/06/2011
- Re: [grouper-users] internationalization liteUI, Wallaert-Taquet Brigitte, 09/07/2011
- RE: [grouper-users] internationalization liteUI, Chris Hyzer, 09/08/2011
- Re: [grouper-users] internationalization liteUI, Wallaert-Taquet Brigitte, 09/08/2011
- RE: [grouper-users] internationalization liteUI, Chris Hyzer, 09/08/2011
- Re: [grouper-users] internationalization liteUI, Wallaert-Taquet Brigitte, 09/07/2011
- RE: [grouper-users] internationalization liteUI, Chris Hyzer, 09/06/2011
- Re: [grouper-users] internationalization liteUI, Wallaert-Taquet Brigitte, 09/05/2011
- RE: [grouper-users] internationalization liteUI, Chris Hyzer, 09/01/2011
Archive powered by MHonArc 2.6.16.