Skip to content

Commit

Permalink
[Fix][Core] #817 UTF-8 encoding for home & payments messages in FO
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Orihuela committed Aug 10, 2012
1 parent 9d23f06 commit 0aa7fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -93,7 +93,7 @@ class BackofficeLocalAuthorityController {
])
} else if (request.post) {
localAuthorityRegistry.saveLocalAuthorityResource(params.id,
params.editor.toString().bytes);
params.editor.toString().getBytes("UTF-8"));
render([
status:"ok",
success_msg : message(code : "message.updateDone")
Expand Down
Expand Up @@ -95,7 +95,7 @@ class BackofficePaymentController {
if(request.post) {
def String content = (params.editor == null ? "" : params.editor.toString())
localAuthorityRegistry.saveLocalAuthorityResource(Type.HTML, name,
content.getBytes());
content.getBytes("UTF-8"));

render([status:"ok", success_msg:message(code:"message.updateDone")] as JSON)
} else {
Expand Down

0 comments on commit 0aa7fe8

Please sign in to comment.