File Upload Bug for Thai Language - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: File Upload Bug for Thai Language (/showthread.php?tid=20567) |
File Upload Bug for Thai Language - El Forum - 07-14-2009 [eluser]DominixZ[/eluser] I found bug that when I upload my thai name pic with File Uploading Class It will convert from this รูปภาพตัวเอง.jpg to this เธฃเธนเธเธ_เธฒเธเธ•เธฑเธงเน€เธญเธ.jpg and in the dabase will be รูป I know the solution for this (set 'encrypt_name' to TRUE) but I want it to not encrypt my file name. How can i fix this bug? Help me plz. File Upload Bug for Thai Language - El Forum - 07-14-2009 [eluser]Iván Argulo[/eluser] Could you transcript the filenames? Sadly, I don't understand Thai... Setting the 'encrypt_name' to true will encode the filename, no matter anything else. File Upload Bug for Thai Language - El Forum - 07-14-2009 [eluser]DominixZ[/eluser] Here is my thai pic name. File Upload Bug for Thai Language - El Forum - 07-14-2009 [eluser]Iván Argulo[/eluser] You posted the image, not the name anyway, you can choose a filename for your new uploaded file. How do you get the filename? Could you post some code? File Upload Bug for Thai Language - El Forum - 07-14-2009 [eluser]DominixZ[/eluser] Sorry, This is my file name "รูปภาพตัวเอง.jpg" Code: if (!$answer_broken && ! $this->upload->do_upload($upload_files)){ This is my code that do_upload() and save information to database (I use DataMapper for Model) |