From 60ee534c1ffb38ad082a40d489e7eec6fecc3fd9 Mon Sep 17 00:00:00 2001 From: rois286 Date: Wed, 17 Apr 2019 16:12:18 +0300 Subject: [PATCH 1/2] php basename() deletes first word in file name We have file names in Hebrew, like: "HELLO WORLD TODAY.pdf", but the first word disappears and becomes: "WORLD TODAY.pdf" in the file listing --- index.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.php b/index.php index 7057331..ebf9a7d 100644 --- a/index.php +++ b/index.php @@ -25,6 +25,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +/* Set locale to Hebrew */ +setlocale(LC_ALL, "en_US.UTF-8"); *** OPTIONS ***/ From e83339e4f194991a3828647cb5bcc9e191b28888 Mon Sep 17 00:00:00 2001 From: rois286 Date: Wed, 17 Apr 2019 16:16:50 +0300 Subject: [PATCH 2/2] changed remark from hebrew to utf-8 --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index ebf9a7d..37541e9 100644 --- a/index.php +++ b/index.php @@ -25,7 +25,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -/* Set locale to Hebrew */ +/* Set locale to utf-8 */ setlocale(LC_ALL, "en_US.UTF-8"); *** OPTIONS ***/