Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

applied patch by jocke, originally dated 2005-02-02

  • Loading branch information...
commit dd29200bde6dbc3cbb0343fe2f4482c447da25f6 1 parent 0aefa3d
richcarl authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/xmlrpc/src/xmlrpc_encode.erl
View
4 lib/xmlrpc/src/xmlrpc_encode.erl
@@ -35,7 +35,7 @@ payload({call, Name, Params}) when atom(Name), list(Params) ->
{error, Reason} -> {error, Reason};
EncodedParams ->
EncodedPayload =
- ["<?xml version=\"1.0\"?><methodCall><methodName>",
+ ["<?xml version=\"1.0\" encoding=\"iso_8859-1\"?><methodCall><methodName>",
atom_to_list(Name), "</methodName>", EncodedParams,
"</methodCall>"],
{ok, EncodedPayload}
@@ -44,7 +44,7 @@ payload({response, {fault, Code, String}}) when integer(Code) ->
case xmlrpc_util:is_string(String) of
yes ->
EncodedPayload =
- ["<?xml version=\"1.0\"?><methodResponse><fault>"
+ ["<?xml version=\"1.0\" encoding=\"iso_8859-1\"?><methodResponse><fault>"
"<value><struct><member><name>faultCode</name><value><int>",
integer_to_list(Code), "</int></value></member><member><name>"
"faultString</name><value><string>", escape_string(String),

0 comments on commit dd29200

Please sign in to comment.
Something went wrong with that request. Please try again.