<?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; Unicode</title>
	<atom:link href="http://sakuratan.biz/archives/tag/unicode/feed" rel="self" type="application/rss+xml" />
	<link>http://sakuratan.biz</link>
	<description>モロモロ工事中です</description>
	<lastBuildDate>Sun, 25 Jun 2023 12:51:51 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>波ダッシュのUnicodeリテラルは301Ch※ただし必要なのは全角チルダFF5Eh</title>
		<link>http://sakuratan.biz/archives/1702</link>
		<comments>http://sakuratan.biz/archives/1702#comments</comments>
		<pubDate>Wed, 24 Feb 2010 06:20:05 +0000</pubDate>
		<dc:creator>さくら</dc:creator>
				<category><![CDATA[日記]]></category>
		<category><![CDATA[Unicode]]></category>

		<guid isPermaLink="false">http://sakuratan.biz/?p=1702</guid>
		<description><![CDATA[波ダッシュ（&#12316;）のUnicodeリテラルは16進数で301Cです。 ちなみにこの波ダッシュ、グリフが機種依存で、UTF-8とかUnicodeでそのままHTMLに書くと文字化けします。どうしてこうなったかは、Wikipediaとかご覧ください。 一般的に波ダッシュと言われている文字は、Unicodeでは全角チルダ（&#65374;）になります。全角チルダのUnicodeリテラルは16進... <div style="margin-top:1ex"><a href="http://sakuratan.biz/archives/1702">(続きを読む)</a></div>]]></description>
			<content:encoded><![CDATA[<p>波ダッシュ（&#12316;）のUnicodeリテラルは16進数で301Cです。</p>
<p>ちなみにこの波ダッシュ、グリフが機種依存で、UTF-8とかUnicodeでそのままHTMLに書くと文字化けします。どうしてこうなったかは、<a href="http://ja.wikipedia.org/wiki/%E6%B3%A2%E3%83%80%E3%83%83%E3%82%B7%E3%83%A5">Wikipedia</a>とかご覧ください。</p>
<p>一般的に波ダッシュと言われている文字は、Unicodeでは全角チルダ（&#65374;）になります。全角チルダのUnicodeリテラルは16進数でFF5Ehです。</p>
<p>なのでHTMLとかに書くとき、文字化けしたくなかったら直接書き込まずエンティティを使う必要があります。波ダッシュが欲しかったらこう、（12316d=301C)</p>
<pre>
&amp;#12316;
&amp;#x301c;
</pre>
<p>全角チルダならこうです。（65374d=ff53)</p>
<pre>
&amp;#65374;
&amp;#xff53;
</pre>
<p>JavaScriptならこんな感じ。</p>
<pre>
'\u301c'
'\uff53'
</pre>
<p>Unicodeコンソーシアムは本当にカスだな。わけの分からん規格入れ込もうとする前にグリフぐらいちゃんとチェックしろよw</p>
<p>ということで、今日も備忘録ですたww</p>
]]></content:encoded>
			<wfw:commentRss>http://sakuratan.biz/archives/1702/feed</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>全角スペースのUnicodeリテラルは3000h</title>
		<link>http://sakuratan.biz/archives/1695</link>
		<comments>http://sakuratan.biz/archives/1695#comments</comments>
		<pubDate>Mon, 22 Feb 2010 16:24:36 +0000</pubDate>
		<dc:creator>さくら</dc:creator>
				<category><![CDATA[日記]]></category>
		<category><![CDATA[Unicode]]></category>

		<guid isPermaLink="false">http://sakuratan.biz/?p=1695</guid>
		<description><![CDATA[全角スペースのUnicodeリテラルは16進数で3000です。 HTML ならこんな感じ。（12288d = 3000h） &#38;#x3000; &#38;#12288; JavaScriptならこんな感じ。 '\u3000' 以上、よく忘れるので備忘録ですたw]]></description>
			<content:encoded><![CDATA[<p>全角スペースのUnicodeリテラルは16進数で3000です。</p>
<p>HTML ならこんな感じ。（12288d = 3000h）</p>
<pre>
&amp;#x3000;
&amp;#12288;
</pre>
<p>JavaScriptならこんな感じ。</p>
<pre>
'\u3000'
</pre>
<p>以上、よく忘れるので備忘録ですたw</p>
]]></content:encoded>
			<wfw:commentRss>http://sakuratan.biz/archives/1695/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
