File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes how to add -Dfile.encoding=UTF-8 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "how to add -Dfile.encoding=UTF-8" Watch "how to add -Dfile.encoding=UTF-8" New topic

how to add -Dfile.encoding=UTF-8

Irakli Bliadze

Joined: Dec 09, 2011
Posts: 17
anybody knows how to add -Dfile.encoding=UTF-8 to tomcat catalina.bat or service.bat and exactly where i should to add it
to know tomcat uft characters
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17423

What do you expect to gain from that? Tomcat itself doesn't require it, and the webapps are expected to manage their own encoding.

An IDE is no substitute for an Intelligent Developer.
Irakli Bliadze

Joined: Dec 09, 2011
Posts: 17
thanks for answer, you are right, i wanted to set utf-8 encodig to my servlet attachment file name and i did this like this:
I agree. Here's the link:
subject: how to add -Dfile.encoding=UTF-8
It's not a secret anymore!