0

sp_xml_preparedocument accepts an local variable declared as varchar(max) and set to xml received without xml declaration.

Default encoding is then set to UTF-8 I suppose.

When I try to change it to something like UTF-16 message

Switch from current encoding to specified encoding not supported.

If I leave it on default message

An invalid character was found in text content.

is shown.

Any suggestion?

Thx

1 Answer 1

2

I changed

varchar(max)

to

nvarchar(max)

and it works now...

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.