摘要
随着网络技术的发展,很多网站提供了文件上传功能,乱码是文件上传过程中经常出现的现象。产生乱码的原因众多,而由于编码方式的不同导致产生乱码是其中最常见的原因。详细分析了在文件上传过程中由于编码方式的不同导致出现乱码的原因以及解决方式,并通过实例的方式介绍了如何在开发过程中利用函数进行编码的转换,从而避免上传文件乱码的产生。
With the development of network technology, many websites provide file uploading function, scrambling is a common phenomenon in the process of file uploading. There are many reasons for scrambling, and scrambling caused by different coding methods is the most common reason. In this paper, the causes and solutions of scrambling in file uploading due to different encoding methods are analyzed in detail, and an example is given to illustrate how to use functions to transform the encoding in the development process so as to avoid scrambling in uploading files.
作者
黄玲娜
HUANG Ling-na(Wuxi City College of Vocational Technology,Wuxi 214000,Jiangsu)
出处
《电脑与电信》
2019年第8期54-55,70,共3页
Computer & Telecommunication