Welcome Guest, Not a member yet? Register   Sign In
can't upload this image with utf8 characters and problem with json_encode
#1

hi , guys 

i can't upload this image in the attachment
because it's contain utf8 characters

this is result

 
PHP Code:
 [raw_name] => ٢�_١٥١١�_٥_١٤٤٧٣٣_(2)7
    
[orig_name] => ٢�_١٥١١�_٥_١٤٤٧٣٣_(2).jpg
    
[client_name] => ٢٠١٥١١٠٥_١٤٤٧٣٣ (2).jpg 
 
and this file name after upload 
ظ¢ظ_ظ،ظ¥ظ،ظ،ظ_ظ¥_ظ،ظ¤ظ¤ظ§ظ£ظ£_(2).jpg

and i can't use this result in json with JSON_UNESCAPED_UNICODE flag


Any suggestion  Sad Sad

Attached Files
.zip   img.zip (Size: 265.13 KB / Downloads: 32)
Reply
#2

(06-27-2017, 01:03 AM)GoldenFingers Wrote: hi , guys 

i can't upload this image in the attachment
because it's contain utf8 characters

this is result

 
PHP Code:
 [raw_name] => ٢�_١٥١١�_٥_١٤٤٧٣٣_(2)7
    
[orig_name] => ٢�_١٥١١�_٥_١٤٤٧٣٣_(2).jpg
    
[client_name] => ٢٠١٥١١٠٥_١٤٤٧٣٣ (2).jpg 
 
and this file name after upload 
ظ¢ظ_ظ،ظ¥ظ،ظ،ظ_ظ¥_ظ،ظ¤ظ¤ظ§ظ£ظ£_(2).jpg

and i can't use this result in json with JSON_UNESCAPED_UNICODE flag


Any suggestion  Sad Sad

Do you need to retain the file name? Maybe you could save it using a random file name rather then the original name?
On the package it said needs Windows 7 or better. So I installed Linux.
Reply
#3

is there any way to save the original name ?
Reply




Theme © iAndrew 2016 - Forum software by © MyBB