mirror of https://github.com/apache/cloudstack.git
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)
This commit is contained in:
parent
b5ab5c2b02
commit
f509efe2d8
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue