<?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>델리 키포스 &#187; 유니코드</title>
	<atom:link href="http://kiipos.delimount.net/tag/%ec%9c%a0%eb%8b%88%ec%bd%94%eb%93%9c/feed" rel="self" type="application/rss+xml" />
	<link>http://kiipos.delimount.net</link>
	<description>춤을 추는 거야. 음악이 계속되는 한.</description>
	<lastBuildDate>Fri, 07 Oct 2011 15:56:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>루비와 유니코드</title>
		<link>http://kiipos.delimount.net/473</link>
		<comments>http://kiipos.delimount.net/473#comments</comments>
		<pubDate>Thu, 20 Aug 2009 06:59:34 +0000</pubDate>
		<dc:creator>키포스</dc:creator>
				<category><![CDATA[미분류]]></category>
		<category><![CDATA[레일스]]></category>
		<category><![CDATA[루비]]></category>
		<category><![CDATA[유니코드]]></category>

		<guid isPermaLink="false">http://kiipos.delimount.net/?p=473</guid>
		<description><![CDATA[현재 루비(Ruby 1.8)는 유니코드(unicode)를 지원하지 않습니다. 저도 처음에는 일본 사람이 만들었으니 당연히 지원할 것이라고 생각했는데 그렇지 않더라구요. 대충 찾아보니 이런 사연이 있더군요.
아무튼 루비가 유니코드를 지원하지 않기 때문에 UTF-8 형식의 문자열을 자를 때 문제가 생깁니다. 루비의 String은 한 글자를 1byte 단위로 처리하는 반면 유니코드는 한 글자가 1byte 이상이기 때문입니다.
우선 루비의 경우 유니코드 관련 클래스가 있더군요. 여담으로 [...]]]></description>
			<content:encoded><![CDATA[<p>현재 <strong>루비(Ruby 1.8)</strong>는 <strong>유니코드(unicode)</strong>를 지원하지 않습니다. 저도 처음에는 일본 사람이 만들었으니 당연히 지원할 것이라고 생각했는데 그렇지 않더라구요. 대충 찾아보니 <a href="http://taewon.tistory.com/tag/%EB%A3%A8%EB%B9%84">이런 사연</a>이 있더군요.</p>
<p>아무튼 루비가 유니코드를 지원하지 않기 때문에 UTF-8 형식의 문자열을 자를 때 문제가 생깁니다. 루비의 String은 한 글자를 1byte 단위로 처리하는 반면 유니코드는 한 글자가 1byte 이상이기 때문입니다.</p>
<p>우선 루비의 경우 <a href="http://ruby-unicode.rubyforge.org/doc/">유니코드 관련 클래스</a>가 있더군요. 여담으로 해당 모듈을 만든 사람이 노경윤이라는 사람인데 이분이 &lt;<a class="np_book_title" href="http://www.aladdin.co.kr/shop/wproduct.aspx?ISBN=8991268269"><span class="font_wooriSaebom">레일스와 함께하는 애자일 웹 개발</span></a>&gt;의 번역자 중 한명이 아닐까라고 추측 해봅니다ㅎ</p>
<p>그런데 설치도 귀찮고 해야하고 조금 더 찾아보니 <strong>레일스(Rails)</strong>의 경우 <a href="http://api.rubyonrails.org/classes/ActiveSupport/CoreExtensions/String/Multibyte.html">멀티 바이트 문자열 확장팩</a>이 있더군요. 다행입니다~</p>
<p>그리고 <a href="http://loopkid.net/articles/2008/07/07/ruby-1-9-utf-8-mostly-works">루비 1.9에서는 유니코드를 지원</a>하더군요 ㅎ</p>
<p align="left"><a class="tt" href="http://twitter.com/home/?status=http://bit.ly/8Eb1Ls+%EB%A3%A8%EB%B9%84%EC%99%80+%EC%9C%A0%EB%8B%88%EC%BD%94%EB%93%9C+" title="Post to Twitter"><img class="nothumb" src="http://kiipos.delimount.net/wp-content/plugins/tweet-this/icons/tt-twitter-micro4.png" alt="Post to Twitter" /></a> <a class="tt" href="http://delicious.com/post?url=http://kiipos.delimount.net/473&amp;title=%EB%A3%A8%EB%B9%84%EC%99%80+%EC%9C%A0%EB%8B%88%EC%BD%94%EB%93%9C" title="Post to Delicious"><img class="nothumb" src="http://kiipos.delimount.net/wp-content/plugins/tweet-this/icons/tt-delicious-micro4.png" alt="Post to Delicious" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://kiipos.delimount.net/473/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

