OSDN Git Service
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