function _filebrowser_convert_to_fs_encoding in Filebrowser 6.2
Convert a string from UTF-8 to FileSystem encoding.
Parameters
$node which provide FileSystem encoding information.:
$source source string:
Return value
re-encoded string
8 calls to _filebrowser_convert_to_fs_encoding()
- filebrowser_form_create_folder_submit in ./
filebrowser.form.create_folder.inc - create folder submition.
- filebrowser_form_create_folder_validate in ./
filebrowser.form.create_folder.inc - Implementation of hook_validate() for creating a folder
- filebrowser_form_delete_confirm_submit in ./
filebrowser.module - File delete confirmation form submit
- filebrowser_page_download in includes/
downloads.inc - Callback for filebrowser_download/%node menu.
- filebrowser_public_download_url in includes/
downloads.inc
File
- includes/
filesystem.inc, line 64
Code
function _filebrowser_convert_to_fs_encoding($node, $source) {
if (!is_string($node->folder_presentation->encoding) || strcasecmp($node->folder_presentation->encoding, 'UTF-8')) {
return $source;
}
else {
return mb_convert_encoding($source, $node->folder_presentation->encoding, "UTF-8");
}
}