Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Encoding of FOR XML results Expand / Collapse
Author
Message
Posted Monday, April 21, 2014 4:11 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, November 13, 2014 4:24 AM
Points: 4, Visits: 36
What is the encoding of the XML resulting from a FOR XML query?

Can I force an encoding?



Post #1563417
Posted Monday, April 21, 2014 5:14 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 1:49 AM
Points: 2,533, Visits: 7,100
Check out Using XML Data Types on technet
Post #1563433
Posted Monday, April 21, 2014 6:10 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, November 13, 2014 4:24 AM
Points: 4, Visits: 36
I'm sorry but I failed to get an answer from the provided link.

I have a query that evaluates into an XML document.

I want to read it with SqlCommand.ExecuteXmlReader.

But the accented characters are no right. Not even when I run the query in a Visual Studio 2013 query window and open the XML result.



Post #1563446
Posted Monday, April 21, 2014 6:38 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 5:03 PM
Points: 6,845, Visits: 13,380
Instead of trying to describe the issue you're struggling with just verbally, it would be more helpful if you could post some sample data so we have something to test against.




Lutz
A pessimist is an optimist with experience.

How to get fast answers to your question
How to post performance related questions
Links for Tally Table , Cross Tabs and Dynamic Cross Tabs , Delimited Split Function
Post #1563459
Posted Monday, April 21, 2014 6:48 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 1:49 AM
Points: 2,533, Visits: 7,100
paulo.morgado (4/21/2014)
I'm sorry but I failed to get an answer from the provided link.

I have a query that evaluates into an XML document.

I want to read it with SqlCommand.ExecuteXmlReader.

But the accented characters are no right. Not even when I run the query in a Visual Studio 2013 query window and open the XML result.


Hmm, that article directly answers the first question and implicitly the latter, looks like those where not the questions you meant to ask. To clear things, please respond to LutzM's post.

Post #1563461
Posted Monday, April 21, 2014 8:02 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, November 13, 2014 4:24 AM
Points: 4, Visits: 36
Looks like my data is in some strange collation that I can't find out what it is, and that is my problem.

Sorry to have wasted your time.



Post #1563491
Posted Monday, April 21, 2014 8:47 AM


SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: Yesterday @ 5:03 PM
Points: 6,845, Visits: 13,380
paulo.morgado (4/21/2014)
Looks like my data is in some strange collation that I can't find out what it is, and that is my problem.

Sorry to have wasted your time.


There's no time wasted so far

All we asked you for is an example of what you're struggling with instead of verbal descriptions. Please keep in mind that we can't look over your shoulder so we don' see what you see.




Lutz
A pessimist is an optimist with experience.

How to get fast answers to your question
How to post performance related questions
Links for Tally Table , Cross Tabs and Dynamic Cross Tabs , Delimited Split Function
Post #1563506
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse