SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


a simple question from new user


a simple question from new user

Author
Message
ihsyed
ihsyed
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 19
Dear Expert,
this is my first post in this forum.
I am using SQL Server 2008 and generating XML file.
XML file encoding by default is in UCS2 LE BOM , i need encoding in UTF-8.
Right now manually opening the xml in notepad ++ and converting the encoding.
Does SQL Server 2008 support UTF-8 encoding or i have to upgrade to SQL Server 2012

thanks for your time.

regards,
Imran
ihsyed
ihsyed
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 19
62 views but no one have answer ?
Sean Pearce
Sean Pearce
SSCrazy Eights
SSCrazy Eights (9.9K reputation)SSCrazy Eights (9.9K reputation)SSCrazy Eights (9.9K reputation)SSCrazy Eights (9.9K reputation)SSCrazy Eights (9.9K reputation)SSCrazy Eights (9.9K reputation)SSCrazy Eights (9.9K reputation)SSCrazy Eights (9.9K reputation)

Group: General Forum Members
Points: 9897 Visits: 3511
SQL Server always stores XML internally as UCS-2 so it is impossible for SQL to generate a UTF-8 encoding header

https://technet.microsoft.com/en-us/library/ms187107(SQL.90).aspx



The SQL Guy @ blogspot

@SeanPearceSQL

About Me
ihsyed
ihsyed
Grasshopper
Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)Grasshopper (14 reputation)

Group: General Forum Members
Points: 14 Visits: 19
thanks for your reply.
is there any way to achieve this in SQL Server or any other tool to covert encoding of xmls grammatically.,
some guys advised me to upgrade from SQL server 2008 to SQL Server 2012 or above , that will solve the purpose.
regards,

Imran
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search