/** * 出力コンテンツの変換 * @return null */ private function _convertContent() { $content = $this->getContext()->getResponse()->getContent(); // 絵文字変換 if (!sfJpMobile::isDocomo()) { $content = sfJpMobile::getEmoji()->convert($content); } // 出力文字コードの変更 if (!sfJpMobile::isMobile() || !sfJpMobile::isSoftbank() && !sfJpMobile::isWillcom()) { $content = mb_convert_encoding($content, 'SJIS-win', 'UTF-8'); } $this->getContext()->getResponse()->setContent($content); }