function _filebrowser_encoding_to_fs in Filebrowser 8
Same name and namespace in other branches
- 7.4 filebrowser.common.inc \_filebrowser_encoding_to_fs()
- 7.2 filebrowser.common.inc \_filebrowser_encoding_to_fs()
- 7.3 filebrowser.common.inc \_filebrowser_encoding_to_fs()
7 calls to _filebrowser_encoding_to_fs()
- filebrowser_form_create_folder_submit in ./
filebrowser.module - create folder submition.
- filebrowser_form_create_folder_validate in ./
filebrowser.module - Implements hook_validate() for creating a folder
- filebrowser_form_delete_confirm_submit in ./
filebrowser.module - File delete confirmation form submit
- filebrowser_page_download in ./
filebrowser.pages.inc - Callback for filebrowser_download/%node menu.
- _fb_validate_file_path in ./
filebrowser.module - @file Validates file path input on node form
File
- ./
filebrowser.common.inc, line 216 - Misc filebrowser common functions.
Code
function _filebrowser_encoding_to_fs($encoding, $source) {
return strcasecmp($encoding, 'UTF-8') == 0 ? $source : mb_convert_encoding($source, $encoding, "UTF-8");
}