Permalink
Browse files

set encoding to iso_8859-1

  • Loading branch information...
1 parent adee24a commit ba4aca9dd6f88252a3a80e4cbffac2b34a97bf9d Joakim Grebenö committed with Richard Carlsson Feb 2, 2005
Showing with 4 additions and 4 deletions.
  1. +2 −2 src/xmlrpc_encode.erl
  2. +2 −2 test/test.erl
View
@@ -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),
View
@@ -8,8 +8,8 @@ all() ->
t20(),
t30(),
t40(),
- %%t50(), xmerl_scan:string/1 returns bad_character_code. broken.
- %%t60(), xmerl_scan:string/1 returns bad_character_code. broken.
+ %%t50(), %% xmerl_scan:string/1 returns bad_character_code. broken.
+ %%t60(), %% xmerl_scan:string/1 returns bad_character_code. broken.
t100().
%% Test: Call external XML-RPC servers

0 comments on commit ba4aca9

Please sign in to comment.