<?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>sjis-win &#8211; トモデジ  tomodigi.com</title>
	<atom:link href="https://tomodigi.com/tag/sjis-win/feed/" rel="self" type="application/rss+xml" />
	<link>https://tomodigi.com</link>
	<description>デジタルもアナログも</description>
	<lastBuildDate>Wed, 27 Jun 2012 05:25:19 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>SJISからUTF-8への文字コード変換にはsjis-winを指定する(PHP)</title>
		<link>https://tomodigi.com/web/s-jis%e3%81%8b%e3%82%89utf-8%e3%81%b8%e3%81%ae%e6%96%87%e5%ad%97%e3%82%b3%e3%83%bc%e3%83%89%e5%a4%89%e6%8f%9b%e3%81%ab%e3%81%af/</link>
					<comments>https://tomodigi.com/web/s-jis%e3%81%8b%e3%82%89utf-8%e3%81%b8%e3%81%ae%e6%96%87%e5%ad%97%e3%82%b3%e3%83%bc%e3%83%89%e5%a4%89%e6%8f%9b%e3%81%ab%e3%81%af/#respond</comments>
		
		<dc:creator><![CDATA[Tomo]]></dc:creator>
		<pubDate>Wed, 27 Jun 2012 19:18:17 +0000</pubDate>
				<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[mb_convert_encoding]]></category>
		<category><![CDATA[sjis]]></category>
		<category><![CDATA[sjis-win]]></category>
		<category><![CDATA[UTF-8]]></category>
		<guid isPermaLink="false">http://www.tomodigi.com/?p=1140</guid>

					<description><![CDATA[Webサイトの作成でやっかいなのがS-JIS（シフトJIS）の取り扱いです。以前はPCの文字コードがS-JISだったり、ケータイサイトはS-JISしか使えなかったりしていましたが、現在ではUTF-8等を使うことが多いと思 &#8230; <a href="https://tomodigi.com/web/s-jis%e3%81%8b%e3%82%89utf-8%e3%81%b8%e3%81%ae%e6%96%87%e5%ad%97%e3%82%b3%e3%83%bc%e3%83%89%e5%a4%89%e6%8f%9b%e3%81%ab%e3%81%af/" class="more-link">続きを読む <span class="screen-reader-text">SJISからUTF-8への文字コード変換にはsjis-winを指定する(PHP)</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>Webサイトの作成でやっかいなのがS-JIS（シフトJIS）の取り扱いです。以前はPCの文字コードがS-JISだったり、ケータイサイトはS-JISしか使えなかったりしていましたが、現在ではUTF-8等を使うことが多いと思います。</p>
<p>PHPで文字コードの変換にはmb_convert_encodingを使いますが、このとき、以下のようにすると一部の文字で文字化けが生じます。</p>
<p><code>mb_convert_encoding($str, 'utf8', 'sjis');</code></p>
<p>どうやら、拡張文字の扱いで文字化けが生じるようです。以下のようにすると、解決します。</p>
<p><code>mb_convert_encoding($str 'utf8', 'sjis-win');<code></code></code></p>
<p>具体的に影響のある文字として、「髙」「黑」「①」「Ⅰ」などがあります。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tomodigi.com/web/s-jis%e3%81%8b%e3%82%89utf-8%e3%81%b8%e3%81%ae%e6%96%87%e5%ad%97%e3%82%b3%e3%83%bc%e3%83%89%e5%a4%89%e6%8f%9b%e3%81%ab%e3%81%af/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
