strll opened a new issue, #8202:
URL: https://github.com/apache/seatunnel/issues/8202

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   Seatunnel的FTP在读取中文路径下的文件的时候显示文件找不到的问题
   
![qq_pic_merged_1733225904013](https://github.com/user-attachments/assets/038b5946-df2b-4271-90d2-db2a1744d66e)
   
   
   
   ### SeaTunnel Version
   
   2.3.8
   
   ### SeaTunnel Config
   
   ```conf
   在所有的FTP的配置中 只要是ftp路径中出现中文都会触发这个问题
   由于内网开发我无法提供具体的文件配置信息
   ```
   
   
   ### Running Command
   
   ```shell
   使用api接口时触发
   ```
   
   
   ### Error Exception
   
   ```log
   抛出的异常是 Seatunnel read file 。。。。 failed
   这里我的解决方式是对文件的路径进行UDF8编码 我修改的是 下面这个文件
   
org/apache/seatunnel/connectors/seatunnel/file/ftp/system/SeaTunnelFTPFileSystem.java
   
具体的修改内容我在https://blog.csdn.net/qq_47431361/article/details/143817316?spm=1001.2014.3001.5502
 
   这个里面有记录
   问题的出现主要是因为getFileStatus 和open 这两个方法中未对中文路径进行编码导致无法读取到 修改之后我测试问题可以解决
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   8
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to