function _filebrowser_encoding_to_fs in Filebrowser 7.3
Same name and namespace in other branches
- 8 filebrowser.common.inc \_filebrowser_encoding_to_fs()
- 7.4 filebrowser.common.inc \_filebrowser_encoding_to_fs()
- 7.2 filebrowser.common.inc \_filebrowser_encoding_to_fs()
Convert a string from UTF-8 to FileSystem encoding.
Parameters
$node which provide FileSystem encoding information.:
$source source string:
Return value
re-encoded string
9 calls to _filebrowser_encoding_to_fs()
- filebrowser_form_create_folder_submit in ./
filebrowser.module - create folder submission.
- filebrowser_form_create_folder_validate in ./
filebrowser.module - Implements hook_validate() for creating a folder
- filebrowser_form_delete_confirm in ./
filebrowser.module - File delete confirmation form CHECK: $node is used but not defined in this function
- filebrowser_form_rename in ./
filebrowser.module - File rename form. CHECK: $node is used but not defined in this function
- filebrowser_page_download in ./
filebrowser.pages.inc - Callback for filebrowser_download/%node menu.
File
- ./
filebrowser.common.inc, line 221 - Misc filebrowser common functions.
Code
function _filebrowser_encoding_to_fs(&$node, $source) {
// debug echo 'source : ' . $source . '<br>';
return strcasecmp($node->folder_presentation->encoding, 'UTF-8') == 0 ? $source : mb_convert_encoding($source, $node->folder_presentation->encoding, "UTF-8");
}