1
0
-1

hi 

how to restrict user to upload file with only English language file name or can i rename uploaded file.

because when file uploaded with arabic file name the file can not be searchable from java. its store on hard disk with ??? e.g.(????????? ??????????????.mp4) but i have changed the db character set to UTF 8 so it store in database with proper name. latin1 character set will not allowed to store any other language in DB that is why i have changed the DB character set.

Regards

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      We offers Spoken English Classes in Nagpur with the help of talented faculty members, interested to learn, speak and write in English, just enroll into our Best Spoken English Institute Nagpur

      Spoken English Training in Nagpur

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Hi, you can try add "-file.encoding=UTF-8" to your JAVA_OPTIONS in tomcat start up script to force it always using UTF-8.

        1. Sayamon J.

          I have this problem, I would like to ask you that I can add "-file.encoding=UTF-8" in what file name?

        CommentAdd your comment...