FTP传输后,Unicode变成ANSI [英] Unicode turns ANSI after FTP transfer

查看:363
本文介绍了FTP传输后,Unicode变成ANSI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一串unicode(UTF-16LE)xml文件,我想通过旧的老式vb6 ftp组件传输,但是当我通过它们发送它们时,它们转向ANSI服务器端(win2k3服务器) 。

当我尝试使用Windows终端ftp客户端发送它时,无论使用二进制还是ASCII传输模式,它都能正常工作。该文件保持unicode。可能的原因是什么?



编辑:也许不相关,但我注意到通过旧电子邮件组件发送文件也是这样做的unicode文件。 b $ b

解决方案

答案在此完成; 通过FTP将ANSI字符串写入Unicode文件


I have a bunch of unicode (UTF-16LE) xml files that I want to transfer via an old OLD vb6 ftp component, but when I send them through there, they turn to ANSI on the ftp server side (win2k3 server).

When I attempt to send it using the windows terminal ftp client, it works fine whether I use binary or ascii transfer mode. The file stays unicode. What could be possible causes of this?

Edit: perhaps unrelated, but I notice sending files through an old email component also does this to unicode files.

解决方案

The answer was finalized here; Writing ANSI string to Unicode file over FTP

这篇关于FTP传输后,Unicode变成ANSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆