how to restrict user to upload file with only english language characters or can i rename uploaded file

Confluence User - 05 Jul, 2018

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

forms;datalists;userviews;user

3


09 Jul, 2018
confluenceUser
confluenceUser

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.

05 Nov, 2019
confluenceUser
confluenceUser

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

22 Mar, 2024
confluenceUser
confluenceUser

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

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print