I have a problem when using OPENXML function over data containing xml-encoding unicode character. The following example returns error: Control character in XML output!

select * from openxml( '<root><element>&#xE6;</element></root>', '/root') with (element xml 'element/@mp:xmltext');

But this one without metaproperty: @mp:xmltext is correct:

select * from openxml( '<root><element>&#xE6;</element></root>', '/root') with (element xml 'element');

The last character, which does not cause a problem is &#xB8.

Used server dbsrv11.exe 11.0.1.2837 runnig on W2003 and the database was generated by command:
dbinit.exe -a -p 4096 -ze cp1250 -z uca(locale=sk)

Thank you for help

asked 31 Aug '12, 10:39

Jan24's gravatar image

Jan24
75348
accept rate: 0%

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×13
×12

question asked: 31 Aug '12, 10:39

question was seen: 1,105 times

last updated: 31 Aug '12, 10:39