Skip to content
Snippets Groups Projects
Commit 36aaecd2 authored by Steven Wittens's avatar Steven Wittens
Browse files

- Moving comment

parent e6828006
No related branches found
No related tags found
No related merge requests found
...@@ -1640,7 +1640,6 @@ function drupal_xml_parser_create(&$data) { ...@@ -1640,7 +1640,6 @@ function drupal_xml_parser_create(&$data) {
} }
// Unsupported encodings are converted here into UTF-8. // Unsupported encodings are converted here into UTF-8.
// Requires the iconv, GNU recode or mbstring PHP extension.
$php_supported = array('utf-8', 'iso-8859-1', 'us-ascii'); $php_supported = array('utf-8', 'iso-8859-1', 'us-ascii');
if (!in_array(strtolower($encoding), $php_supported)) { if (!in_array(strtolower($encoding), $php_supported)) {
$out = drupal_convert_to_utf8($data, $encoding); $out = drupal_convert_to_utf8($data, $encoding);
...@@ -1662,6 +1661,8 @@ function drupal_xml_parser_create(&$data) { ...@@ -1662,6 +1661,8 @@ function drupal_xml_parser_create(&$data) {
/** /**
* Convert data to UTF-8 * Convert data to UTF-8
* *
* Requires the iconv, GNU recode or mbstring PHP extension.
*
* @param $data * @param $data
* The data to be converted. * The data to be converted.
* @param $encoding * @param $encoding
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment