<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>utf-8 &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/utf-8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Sun, 24 Sep 2017 13:58:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>MySQL: How to change default Character set to UTF-8</title>
		<link>https://www.dbrnd.com/2015/10/mysql-how-to-change-default-character-set-to-utf-8/</link>
					<comments>https://www.dbrnd.com/2015/10/mysql-how-to-change-default-character-set-to-utf-8/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Fri, 30 Oct 2015 17:02:03 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[character set]]></category>
		<category><![CDATA[collation]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[MySQL Command]]></category>
		<category><![CDATA[MySQL Database Administrator]]></category>
		<category><![CDATA[MySQL Database Designing]]></category>
		<category><![CDATA[MySQL Database Programming]]></category>
		<category><![CDATA[MySQL Error]]></category>
		<category><![CDATA[MySQL Performance Tunning]]></category>
		<category><![CDATA[MySQL Query]]></category>
		<category><![CDATA[MySQL Tips and Tricks]]></category>
		<category><![CDATA[utf-8]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=962</guid>

					<description><![CDATA[In the previous post, I discussed and provided the small note on Database Character Set and Collation. In this post, I am showing how you can configure or change default Character Set in MySQL? Sometimes, it requires changing the default character set of MySQL Server or MySQL Database. A Character set &#8220;latin1&#8221; and Collation &#8220;latin1_swedish_ci&#8221; [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fmysql-how-to-change-default-character-set-to-utf-8%2F&amp;linkname=MySQL%3A%20How%20to%20change%20default%20Character%20set%20to%20UTF-8" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fmysql-how-to-change-default-character-set-to-utf-8%2F&amp;linkname=MySQL%3A%20How%20to%20change%20default%20Character%20set%20to%20UTF-8" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fmysql-how-to-change-default-character-set-to-utf-8%2F&amp;linkname=MySQL%3A%20How%20to%20change%20default%20Character%20set%20to%20UTF-8" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fmysql-how-to-change-default-character-set-to-utf-8%2F&amp;linkname=MySQL%3A%20How%20to%20change%20default%20Character%20set%20to%20UTF-8" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fmysql-how-to-change-default-character-set-to-utf-8%2F&amp;linkname=MySQL%3A%20How%20to%20change%20default%20Character%20set%20to%20UTF-8" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fmysql-how-to-change-default-character-set-to-utf-8%2F&amp;linkname=MySQL%3A%20How%20to%20change%20default%20Character%20set%20to%20UTF-8" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fmysql-how-to-change-default-character-set-to-utf-8%2F&#038;title=MySQL%3A%20How%20to%20change%20default%20Character%20set%20to%20UTF-8" data-a2a-url="https://www.dbrnd.com/2015/10/mysql-how-to-change-default-character-set-to-utf-8/" data-a2a-title="MySQL: How to change default Character set to UTF-8"></a></p><p>In the previous post, I discussed and provided the small note on Database Character Set and Collation.<br />
In this post, I am showing how you can configure or change default Character Set in MySQL?</p>
<blockquote><p>Sometimes, it requires changing the default character set of MySQL Server or MySQL Database.<br />
A Character set &#8220;latin1&#8221; and Collation &#8220;latin1_swedish_ci&#8221; are the default of MySQL Server.</p>
<p>This is a standard configuration, and you do not need to change anything, but if your application requires storing data using a different character set, you have to change this default configuration.</p></blockquote>
<p><strong>Here, I am showing how to change your default character set and collation to UTF-8.</strong></p>
<p>MySQL Server provides, different three ways to configure character set and collation.</p>
<ul>
<li>Configure Character set and Collation at Database Level.</li>
<li>Configure Character set and Collation at Server Startup.</li>
<li>Configure Character set and Collation during MySQL Server Installation and Configuration.</li>
</ul>
<p><strong>First, check your default Character Set and Collation of MySQL Server.</strong></p><pre class="crayon-plain-tag">SHOW VARIABLES LIKE 'chara%'; 
SHOW VARIABLES LIKE 'collation%';</pre><p> </p>
<p><strong>If you want to change the default to UTF-8, you want to add the following to my.cnf (MySQL Configuration File).<br />
</strong></p>
<pre class="crayon-plain-tag">[client]
default-character-set=utf8

[mysql]
default-character-set=utf8

[mysqld]
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
character-set-server = utf8</pre> </p>
<p><strong>Specify Character Settings per Database:<br />
</strong></p>
<pre class="crayon-plain-tag">CREATE DATABASE MyDatabase
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE utf8_general_ci;</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2015/10/mysql-how-to-change-default-character-set-to-utf-8/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Database Theory: What is Character Set and Collation</title>
		<link>https://www.dbrnd.com/2015/10/database-theory-what-is-character-set-and-collation/</link>
					<comments>https://www.dbrnd.com/2015/10/database-theory-what-is-character-set-and-collation/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 29 Oct 2015 18:26:59 +0000</pubDate>
				<category><![CDATA[Database Theory]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[character set]]></category>
		<category><![CDATA[collation]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database concept]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[database standards]]></category>
		<category><![CDATA[database topic]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[latin1]]></category>
		<category><![CDATA[RDBMS]]></category>
		<category><![CDATA[utf-8]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=955</guid>

					<description><![CDATA[In this post, I am sharing small Database theory on Character Set and Collation. As we are Database Professionals and already experienced with &#8220;Collate&#8221; in SQL Server and MySQL. I found that fresher and intermediate Database Professional have doubt and question about Character Set and Collation. Let me clear this with a natural note. What [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fdatabase-theory-what-is-character-set-and-collation%2F&amp;linkname=Database%20Theory%3A%20What%20is%20Character%20Set%20and%20Collation" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fdatabase-theory-what-is-character-set-and-collation%2F&amp;linkname=Database%20Theory%3A%20What%20is%20Character%20Set%20and%20Collation" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fdatabase-theory-what-is-character-set-and-collation%2F&amp;linkname=Database%20Theory%3A%20What%20is%20Character%20Set%20and%20Collation" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fdatabase-theory-what-is-character-set-and-collation%2F&amp;linkname=Database%20Theory%3A%20What%20is%20Character%20Set%20and%20Collation" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fdatabase-theory-what-is-character-set-and-collation%2F&amp;linkname=Database%20Theory%3A%20What%20is%20Character%20Set%20and%20Collation" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fdatabase-theory-what-is-character-set-and-collation%2F&amp;linkname=Database%20Theory%3A%20What%20is%20Character%20Set%20and%20Collation" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2015%2F10%2Fdatabase-theory-what-is-character-set-and-collation%2F&#038;title=Database%20Theory%3A%20What%20is%20Character%20Set%20and%20Collation" data-a2a-url="https://www.dbrnd.com/2015/10/database-theory-what-is-character-set-and-collation/" data-a2a-title="Database Theory: What is Character Set and Collation"></a></p><p>In this post, I am sharing small Database theory on Character Set and Collation.<br />
As we are Database Professionals and already experienced with &#8220;Collate&#8221; in SQL Server and MySQL.<br />
I found that fresher and intermediate Database Professional have doubt and question about Character Set and Collation.</p>
<p>Let me clear this with a natural note.</p>
<p><strong>What is Character Set?</strong></p>
<blockquote><p>A Character Set is nothing but just a list of symbols and encodings. </p>
<p>For example, latin1 and UTF-8 are the most traditional character set.<br />
Using latin1, you will be able to write all American words because latin1 contains all ASCII characters, which are sufficient to write an English word. On the contrary, with ASCII you will not be able to write all words of Western European specific languages because for instance, characters like &#8216;ë&#8217;, &#8216;õ&#8217;, &#8216;Ñ&#8217; are missing.</p>
<p>A Character Set encodes characters so that they fit in memory. For example,  the euro symbol, €, will be encoded as 0xa4, and in UTF-8, it will be 0xe282ac.</p></blockquote>
<p><strong>What is Collation?</strong></p>
<blockquote><p>A collation is a set of rules for comparing characters in a character set. It has also ruled for sorting of characters, and proper order of two characters varies from language to language.<br />
A Collation compared two strings like, if a word is greater than another one, and sort accordingly. </p>
<p>If you are using &#8220;latin1&#8221; Character set, you can use &#8220;latin1_swedish_ci&#8221; Collation.<br />
You have to choose right collation because wrong collation may affect your database performance.</p></blockquote>
<p><strong>Now create one database in MySQL using Character Set and Collation:</strong></p>
<pre class="crayon-plain-tag">CREATE DATABASE DatabaseName CHARACTER SET latin1 COLLATE latin1_swedish_ci;</pre> </p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2015/10/database-theory-what-is-character-set-and-collation/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
	</channel>
</rss>
