string_agg vs. for xml, re: unicode (1 Viewer)

Isaac

Lifelong Learner
Local time
Today, 09:00
Joined
Mar 14, 2017
Messages
8,777
Maybe I am just looking right at it and not seeing it or something, but I'm struggling to find documentation that proves my hypothesis that string_agg overcomes the problem with for_xml giving a serialization error when it comes to 'illegal' unicode characters.

I got the error in an old proc that used for xml to stuff some things together........I solved the problem (eliminated the error on the same data) by using string_agg.

But I am searching for documentation that explicitly confirms something along these lines. ??
 

Isaac

Lifelong Learner
Local time
Today, 09:00
Joined
Mar 14, 2017
Messages
8,777
No, it's similar to many articles I read prior to my OP. It doens't specifically mention anything about unicode, encoding, etc.
 

Isaac

Lifelong Learner
Local time
Today, 09:00
Joined
Mar 14, 2017
Messages
8,777
Maybe if I knew XML more, I would inherently understand why a function designed specifically for XML was unable to handle >ASCI unicode's
 

Users who are viewing this thread

Top Bottom