1.12.x drupal.inc drupal_convert_to_utf8($data, $encoding)
1.10.x drupal.inc drupal_convert_to_utf8($data, $encoding)
1.11.x drupal.inc drupal_convert_to_utf8($data, $encoding)
1.7.x drupal.inc drupal_convert_to_utf8($data, $encoding)

Converts data to UTF-8.

Deprecated

since 1.0.0

See also

backdrop_convert_to_utf8()

Related topics

File

includes/drupal.inc, line 2412
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_convert_to_utf8($data, $encoding) {
  watchdog_deprecated_function('drupal', __FUNCTION__);
  return backdrop_convert_to_utf8($data, $encoding);
}