Skip to content

Commit

Permalink
fix base64 string adapter encoding issue, issue Azure#193.
Browse files Browse the repository at this point in the history
  • Loading branch information
Albert Cheng committed Mar 7, 2013
1 parent dbff29a commit 3ff10d5
Showing 1 changed file with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.microsoft.windowsazure.services.core.utils.pipeline;

Expand All @@ -25,7 +25,7 @@ public class Base64StringAdapter extends XmlAdapter<String, String> {

@Override
public String marshal(String arg0) throws Exception {
return new String(Base64.encode(arg0));
return new String(Base64.encode(arg0), "UTF-8");
}

@Override
Expand Down

0 comments on commit 3ff10d5

Please sign in to comment.