<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: remove code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Tue, 07 Oct 2008 22:59:56 GMT</pubDate>
    <description>DZone Snippets: remove code</description>
    <item>
      <title>translit string (americanize)</title>
      <link>http://snippets.dzone.com/posts/show/1776</link>
      <description>&lt;code&gt;&lt;br /&gt;require 'iconv'&lt;br /&gt;&lt;br /&gt;class String&lt;br /&gt;  def translit&lt;br /&gt;    self.gsub(/[^\x20-\x7f]/){ Iconv.iconv('us-ascii//IGNORE//TRANSLIT', 'utf-8',$&amp;)[0].sub(/^[\^`'"~](?=[a-z])/i, '')}&lt;br /&gt;  end&lt;br /&gt;end&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 27 Mar 2006 06:18:13 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1776</guid>
      <author>caffo ()</author>
    </item>
  </channel>
</rss>
