<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kohkimakimoto</author_name>
  <author_url>https://blog.hatena.ne.jp/kohkimakimoto/</author_url>
  <blog_title>オープンソースこねこね</blog_title>
  <blog_url>https://kohkimakimoto.hatenablog.com/</blog_url>
  <categories>
    <anon>MySQL</anon>
    <anon>iPhone</anon>
  </categories>
  <description>半日くらいハマったので、メモしておきます。 PHPとMySQLを使ってWebアプリ開発しているのですが、この環境にiPhoneから絵文字入りのテキストデータをPOSTすると、絵文字を入力した後ろの所からバッサリと文字列が削除されてしまうという現象が起きていました。結論からいうとiPhoneの絵文字がUTF8の4バイト文字なのでMySQLに登録できなかったわけなのですが、その調査作業手順をまとめたメモです。 まずサーバやアプリのログを追ってみたのですが、よくわからず。そもそもサーバまでちゃんとデータが届いているのか調べるためtcpdumpしてみました。 # tcpdump -nX port 80…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkohkimakimoto.hatenablog.com%2Fentry%2F2012%2F02%2F04%2F103457&quot; title=&quot;iPhoneの絵文字をMySQLにInsertしようとすると文字列がぶった切れる件 - オープンソースこねこね&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/k/kohkimakimoto/20120203/20120203191741.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-02-04 10:34:57</published>
  <title>iPhoneの絵文字をMySQLにInsertしようとすると文字列がぶった切れる件</title>
  <type>rich</type>
  <url>https://kohkimakimoto.hatenablog.com/entry/2012/02/04/103457</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
