<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to store mandarin chinese text into a MsSql database</title><link>https://answers.axonivy.com/questions/2210/how-to-store-mandarin-chinese-text-into-a-mssql-database</link><description>&lt;p&gt;I'm trying to insert UTF-8 encoded strings with mandarin language (e.g. 文化大學華 hey) into a MsSql table. The Collation is Latin1_General_CI_AS. &lt;/p&gt;
&lt;p&gt;But the special characters are always stored with question mark characters (e.g. ????? hey). How can I store the values so that they can be read afterwards?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2210/how-to-store-mandarin-chinese-text-into-a-mssql-database" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 22 Nov 2016 14:34:18 -0500</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2210/how-to-store-mandarin-chinese-text-into-a-mssql-database/2211</link><description>&lt;p&gt;You can write the values with an 'N' prefix as described here: &lt;a href="http://stackoverflow.com/questions/21726478/utf-8-character-gets-changed-in-insert-statement-on-ms-sql-server"&gt;http://stackoverflow.com/questions/21726478/utf-8-character-gets-changed-in-insert-statement-on-ms-sql-server&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The add the prefix the Db query type must be changed from 'write query' to 'any other query'.&lt;/p&gt;
&lt;p&gt;&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/prefixValueWithN.PNG"&gt;
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/columnColation.PNG"&gt;
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/mandarinInMsSql.PNG"&gt;&lt;/p&gt;
&lt;p&gt;See the sample project for an implementation example: &lt;a href="/upfiles/utf8PagesMsSqlStore_51.iar"&gt;utf8PagesMsSqlStore_51.iar&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Tue, 22 Nov 2016 14:34:18 -0500</pubDate><guid>https://answers.axonivy.com/questions/2210/how-to-store-mandarin-chinese-text-into-a-mssql-database/2211</guid></item></channel></rss>