cloudstack 3.0 - API response serializer - change XML serialized string's encoding from ISO-8859-1 to UTF-8 to support more characters - fix "L10N: DE, ES, FR, JA, KO, SC: Garbage characters appear when using localized characters in Subscriptions page" (Reviewed-by: Brian)
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/f509efe2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f509efe2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f509efe2 Branch: refs/heads/4.0 Commit: f509efe2d8ea2e1ff206a827a896b083136f2a09 Parents: b5ab5c2 Author: Jessica Wang <[email protected]> Authored: Tue Sep 4 11:39:17 2012 -0700 Committer: Jessica Wang <[email protected]> Committed: Tue Sep 4 11:43:29 2012 -0700 ---------------------------------------------------------------------- .../cloud/api/response/ApiResponseSerializer.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f509efe2/server/src/com/cloud/api/response/ApiResponseSerializer.java ---------------------------------------------------------------------- diff --git a/server/src/com/cloud/api/response/ApiResponseSerializer.java b/server/src/com/cloud/api/response/ApiResponseSerializer.java index 83e4e6e..124bee1 100644 --- a/server/src/com/cloud/api/response/ApiResponseSerializer.java +++ b/server/src/com/cloud/api/response/ApiResponseSerializer.java @@ -118,7 +118,7 @@ public class ApiResponseSerializer { private static String toXMLSerializedString(ResponseObject result) { StringBuilder sb = new StringBuilder(); - sb.append("<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>"); + sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); sb.append("<" + result.getResponseName() + " cloud-stack-version=\"" + ApiDBUtils.getVersion() + "\">"); if (result instanceof ListResponse) {
