当前位置:网站首页>delphi10 ftp文件名乱码问题
delphi10 ftp文件名乱码问题
2022-06-21 06:12:00 【LBREN_】
困扰了1个月,想尽无数转码方式,都没有成功,ftp服务是 IIS 用的是UTF8
idftp 设置
idftp.transferType一定要设置为ftBinary
当执行了connect执行一下
if idftp_Client.IsExtSupported('UTF8') then
begin
// 尝试非标准UTF-8扩展,许多服务器使用这个方法...
if idftp_Client.SendCmd('OPTS UTF8 ON') <> 200 then
begin
// 尝试 draft-ietf-ftpext-utf-8-option-00.txt...
if idftp_Client.SendCmd('OPTS UTF-8 NLST') <> 200 then
Exit;
end;
idftp_Client.IOHandler.DefStringEncoding := IndyTextEncoding(TEncoding.UTF8);
end;
边栏推荐
- 5254. 卖木头块 动态规划
- 【你所熟悉的网络真的安全吗?】万字文
- 【数据挖掘】期末复习 第五章
- 正则表达式基础
- Aurora8b10b IP usage-02-ip function design skills
- [reproduce ms08-067 via MSF tool intranet]
- Construction and protection of small-scale network examination
- Fastdfs cluster
- Asp. Net web API 2 Lesson 18 - working with entity relations in OData
- leetcode 410. Maximum value of split array - (Day30)
猜你喜欢

TypeError: iter() returned non-iterator of type ‘xxx‘

【数据挖掘】期末复习 第二章

Aurora8B10B IP使用 -01- 简介与端口描述

Aurora8b10b IP usage-02-ip function design skills

Aurora8b10b IP use-04-ip routine application example

Quartz. Net getting started

Refine business details

FPGA - 7 Series FPGA selectio -05- logic of logic resources

The time plug-in is used for the establishment time, but when modifying parameters on the web page, if the time is not modified, an error will be reported when saving it for the first time, and it can

Aurora8b10b IP usage-03-ip configuration application guide
随机推荐
递归建立链式二叉树,完成前中后序遍历以及其他功能(附源码)
leetcode 410. 分割数组的最大值——(每日一难day30)
Unity隐藏目录和隐藏文件
Docker installing MySQL
Quartz. Net getting started
Aurora 8b10b IP use - 02 - IP function design skills
[data mining] final review Chapter 1
Contos7 installing SVN server
Aurora8b10b IP use-04-ip routine application example
图着色问题回溯法(最通俗易懂)
认知语言学之框架与脚本
docker 安装mysql
5254. 卖木头块 动态规划
Error running code generator file: the server time zone value ' й ��� ʱ ��‘ is unrecognized or represents more than one time
Memorizing Normality to Detect Anomaly: Memory-augmented Deep Autoencoder for Unsupervised Anomaly D
上手自定义线程池
直击2022互联网大裁员:繁花落地,一地鸡毛
[JVM] method area
Deeply understand the gradient disappearance of RNN and why LSTM can solve the gradient disappearance
IP - RF data converter -04- API User Guide - system settings related functions