OSDN Git Service

CHANGE:SKINIMPORTクラスでXMLをパースする前後にi18n::convert()による文字符号化方式の変換を追加
authorsakamocchi <o-takashi@sakamocchi.jp>
Sun, 15 Jan 2012 07:24:06 +0000 (16:24 +0900)
committersakamocchi <o-takashi@sakamocchi.jp>
Sun, 15 Jan 2012 07:24:06 +0000 (16:24 +0900)
commitfd4189ba54cf8b3bf75eeb41c90f4623072a97fa
treed1975896f603ba22aafea769ea54a13ba6cf301e
parentdaaf2e521232efe19f3117b3fc91ed47bf380211
CHANGE:SKINIMPORTクラスでXMLをパースする前後にi18n::convert()による文字符号化方式の変換を追加
CHANGE: 'SKINIMPORT' class encode XML as UTF-8 before parsing and
decode after parsing with i18n::convert().

Nucleus CMSのXMLパーサーはJames
ClarkのexpatによるPHP拡張を用いているが、このパーサーはUS-ASCII/ISO-8859-1/UTF-8によって符号化された文字列しか扱えない。このコミットは、パースする前後にi18n::convert()による文字符号化方式の変換処理を入れることで、さまざまな文字符号化方式を適用したXMLを扱うことができるようになった。

Nucleus CMS utilize James Clark's expat implementation for XML. This
implementation can parse the XML encoded by US-ASCII/ISO-8859-1/UTF-8.
On this commit, we can deal with XML no matter which character
encoding scheme is applied in the XML.

この問題は日本語フォーラムの以下の投稿で報告されている。この場合EUC-JP文字符号化方式が問題となっていた。
This bug is reported in Japanese forum, related to EUC-JP character
coding scheme.See the threads below.
http://japan.nucleuscms.org/bb/viewtopic.php?t=2014
http://japan.nucleuscms.org/bb/viewtopic.php?t=2932
nucleus/libs/skinie.php