Permalink
Browse files

make sure that we get back a SOAPString when $KCODE is UTF-8

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1823 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent dfc422b commit b7f3751ce04e144f0794cc817ec13d850ceb6fd8 @leonbreedt leonbreedt committed Jul 13, 2005
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionwebservice/test/dispatcher_action_controller_soap_test.rb
@@ -71,6 +71,8 @@ def test_utf8
@direct_controller.web_service_exception_reporting = true
$KCODE = 'u'
assert_equal(Utf8String, do_method_call(@direct_controller, 'TestUtf8'))
+ retval = SOAP::Processor.unmarshal(@response_body).body.response
+ assert retval.is_a?(SOAP::SOAPString)
# If $KCODE is not set to UTF-8, any strings with non-ASCII UTF-8 data
# will be sent back as base64 by SOAP4R. By the time we get it here though,

0 comments on commit b7f3751

Please sign in to comment.