Removing some iso-8859 conversions. VIVO-81
This commit is contained in:
parent
314a4e638b
commit
9f4ea054ac
3 changed files with 8 additions and 14 deletions
|
@ -65,13 +65,10 @@ public class ClassgroupRetryController extends BaseEditController {
|
|||
} catch (NullPointerException e) {
|
||||
log.error("Need to implement 'record not found' error message.");
|
||||
}
|
||||
if (vclassGroupForEditing == null) {
|
||||
try {
|
||||
String uriToFind = new String(request.getParameter("uri").getBytes("ISO-8859-1"),"UTF-8");
|
||||
vclassGroupForEditing = (VClassGroup)cgDao.getGroupByURI(uriToFind);
|
||||
} catch (java.io.UnsupportedEncodingException uee) {
|
||||
// forget it
|
||||
}
|
||||
if (vclassGroupForEditing == null) {
|
||||
//UTF-8 expected due to URIEncoding on Connector in server.xml
|
||||
String uriToFind = new String(request.getParameter("uri"));
|
||||
vclassGroupForEditing = (VClassGroup)cgDao.getGroupByURI(uriToFind);
|
||||
}
|
||||
} else {
|
||||
vclassGroupForEditing = new VClassGroup();
|
||||
|
|
|
@ -65,12 +65,9 @@ public class PropertyGroupRetryController extends BaseEditController {
|
|||
log.error("Need to implement 'record not found' error message.");
|
||||
}
|
||||
if (propertyGroupForEditing == null) {
|
||||
try {
|
||||
String uriToFind = new String(request.getParameter("uri").getBytes("ISO-8859-1"),"UTF-8");
|
||||
propertyGroupForEditing = (PropertyGroup)pgDao.getGroupByURI(uriToFind);
|
||||
} catch (java.io.UnsupportedEncodingException uee) {
|
||||
// forget it
|
||||
}
|
||||
// UTF-8 expected due to URIEncoding on Connector element in server.xml
|
||||
String uriToFind = new String(request.getParameter("uri"));
|
||||
propertyGroupForEditing = (PropertyGroup)pgDao.getGroupByURI(uriToFind);
|
||||
}
|
||||
} else {
|
||||
propertyGroupForEditing = new PropertyGroup();
|
||||
|
|
|
@ -242,7 +242,7 @@ public abstract class FreemarkerConfiguration {
|
|||
* URL?
|
||||
*/
|
||||
try {
|
||||
c.setSetting("url_escaping_charset", "ISO-8859-1");
|
||||
c.setSetting("url_escaping_charset", "UTF-8");
|
||||
} catch (TemplateException e) {
|
||||
log.error("Error setting value for url_escaping_charset.");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue