Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem with FTP Server while storing file with special char name,  RSS feed

 
Ashok Mor
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

We have FTP server setup at server side which is of Apache Mina,

I have Apache FTPClient to communicate with FTP server, and sending file with special char (UTF-8) to store, I have already setup encoding as UTF-8 at client side, now FTP server receive the file and store it into destination folder but it replace ‘?’ into filename wherever special char is found.

Does any body have an idea what can solve this problem?



My file name e.g: På følgende du yderligere information og hjælp1.mov
FTP server store it as P?_f?lgende_du_yderligere_information_og_hj?lp1.mov.md5
 
Wouter Oet
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've no idea how to solve your problem but just thinking out loud: can your OS store files with that kind of name?
 
Ashok Mor
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It get resolved as it was the problem with jvm considering charsetfor linux based on LANG proeprty, so i set it as LANG=en_GB.UTF-8, and issue get resolved.

 
Ashok Mor
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It resolved with the setting like, LANG=en_GB.UTF-8
 
Greg Charles
Sheriff
Posts: 3014
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's great you were able to resolve your problem. Just to clarify, the LANG property is a shell environment variable, right?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!