Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
36aaecd2
Commit
36aaecd2
authored
Mar 03, 2005
by
Steven Wittens
Browse files
- Moving comment
parent
e6828006
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/common.inc
View file @
36aaecd2
...
...
@@ -1640,7 +1640,6 @@ function drupal_xml_parser_create(&$data) {
}
// 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'
);
if
(
!
in_array
(
strtolower
(
$encoding
),
$php_supported
))
{
$out
=
drupal_convert_to_utf8
(
$data
,
$encoding
);
...
...
@@ -1662,6 +1661,8 @@ function drupal_xml_parser_create(&$data) {
/**
* Convert data to UTF-8
*
* Requires the iconv, GNU recode or mbstring PHP extension.
*
* @param $data
* The data to be converted.
* @param $encoding
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment