<?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>Whaly&#039;s World &#187; string</title>
	<atom:link href="http://baleinoid.com/whaly/tag/string/feed/" rel="self" type="application/rss+xml" />
	<link>http://baleinoid.com/whaly</link>
	<description>tail -f /var/log/whaly</description>
	<lastBuildDate>Fri, 06 Apr 2012 21:28:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How to remove Diacritics in .net C#</title>
		<link>http://baleinoid.com/whaly/2010/01/how-to-remove-diacritics-in-net-c/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-remove-diacritics-in-net-c</link>
		<comments>http://baleinoid.com/whaly/2010/01/how-to-remove-diacritics-in-net-c/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 18:36:13 +0000</pubDate>
		<dc:creator>whaly</dc:creator>
				<category><![CDATA[Microsoft .NET]]></category>
		<category><![CDATA[c#]]></category>
		<category><![CDATA[diacritics]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://baleinoid.com/whaly/?p=145</guid>
		<description><![CDATA[If you need to remove diacritics from a string you can : [Bad] do a lot's of replace like repeat for ÀÁÂÃÄâãäàáÈÉÊËêëèéÌÍÎÏîïìíÒÓÔÖôõöòóÙÚÛÜûüùúÝýÑñç and maybe miss some exotic chars or the Õ in this list ! [Good] or you can use this function]]></description>
			<content:encoded><![CDATA[<p>If you need to remove diacritics from a string you can :</p>
<ul>
<li>[Bad] do a lot's of replace like <img src='http://baleinoid.com/whaly/wordpress/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </li>
</ul>
<pre class="brush: csharp; light: true; title: ; notranslate">inputString = inputString.Replace('À', 'A');</pre>
<p>repeat for ÀÁÂÃÄâãäàáÈÉÊËêëèéÌÍÎÏîïìíÒÓÔÖôõöòóÙÚÛÜûüùúÝýÑñç and maybe miss some exotic chars or the Õ in this list !</p>
<ul>
<li>[Good] or you can use this function <img src='http://baleinoid.com/whaly/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </li>
</ul>
<pre class="brush: csharp; light: true; title: ; notranslate">
	public static string RemoveDiacritics(string inputString)
	{
		//!\\ Warning 'œ' will be replaced with a 'o' not an 'oe'
		String normalizedString = inputString.Normalize(NormalizationForm.FormD);
		StringBuilder stringBuilder = new StringBuilder();
		for (int i = 0; i &lt; normalizedString.Length; i++)
		{
			Char c = normalizedString[i];
			if (System.Globalization.CharUnicodeInfo.GetUnicodeCategory(c) != System.Globalization.UnicodeCategory.NonSpacingMark)
				stringBuilder.Append(c);
		}
		return stringBuilder.ToString();
	}
</pre>
 <p><a href="http://baleinoid.com/whaly/wordpress/?flattrss_redirect&amp;id=145&amp;md5=d0903e489c5c2c68fc93d479f66b3328" title="Flattr" target="_blank"><img src="http://baleinoid.com/whaly/wordpress/wp-content/plugins/flattr/img/flattr-badge-large.png" alt="flattr this!"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://baleinoid.com/whaly/2010/01/how-to-remove-diacritics-in-net-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<atom:link rel="payment" href="https://flattr.com/submit/auto?user_id=whaly&amp;popout=1&amp;url=http%3A%2F%2Fbaleinoid.com%2Fwhaly%2F2010%2F01%2Fhow-to-remove-diacritics-in-net-c%2F&amp;language=en_GB&amp;category=text&amp;title=How+to+remove+Diacritics+in+.net+C%23&amp;description=If+you+need+to+remove+diacritics+from+a+string+you+can+%3A+%5BBad%5D+do+a+lot%27s+of+replace+like+repeat+for+%C3%80%C3%81%C3%82%C3%83%C3%84%C3%A2%C3%A3%C3%A4%C3%A0%C3%A1%C3%88%C3%89%C3%8A%C3%8B%C3%AA%C3%AB%C3%A8%C3%A9%C3%8C%C3%8D%C3%8E%C3%8F%C3%AE%C3%AF%C3%AC%C3%AD%C3%92%C3%93%C3%94%C3%96%C3%B4%C3%B5%C3%B6%C3%B2%C3%B3%C3%99%C3%9A%C3%9B%C3%9C%C3%BB%C3%BC%C3%B9%C3%BA%C3%9D%C3%BD%C3%91%C3%B1%C3%A7+and+maybe+miss+some+exotic+chars+or+the...&amp;tags=c%23%2Cdiacritics%2Cstring%2Cblog" type="text/html" />
	</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: baleinoid.com @ 2012-05-22 07:11:31 -->
