Skip to content

Commit 4c57f86

Browse files
author
Chris Martin
committed
revert to erlang decoding of XML data
1 parent 11e2f91 commit 4c57f86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tds/types.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ defmodule Tds.Types do
733733
end
734734

735735
def decode_xml(_data_info, <<data::binary>>) do
736-
ucs2_to_utf(data)
736+
:unicode.characters_to_binary(data, {:utf16, :little}, :utf8)
737737
end
738738

739739
def decode_udt(%{}, <<data::binary>>) do

0 commit comments

Comments
 (0)