下载文件,中文名称显示为乱码,解决方案记录

ubuntu系统踩坑记录--ubuntu系统解压zip文件中文乱码 嗨朋友!感谢光临我的博客 还没上岸的我 还在努力之中,本文中理解有错的时候还请您指点 本人也很喜欢爬虫 欢迎来到本人的公众号 一起交流 公众号:Linux下撸python 能得指点是晚辈荣幸 文章目录絮叨一下原因解决办法下载解压转换编码写给看到最后的你 絮叨一下 在ubuntu系统中 我们解压 zip 文件的时候 如果有中文名称 就会被间隙成乱码 比如这样子 ╧ε─┐╫╩┴╧ 虽然不影响文件的使用 但是看不到文件名称 也是很烦 其原因也很简单 原因 Windows下的zip文件中的编码是GBK/GB2. 阅读详情
  public Stream Download(string fileserviceid, string path, string fileName, string originalFileName, string preview)
        {
            if (string.IsNullOrEmpty(path) || string.IsNullOrEmpty(fileName))
                return default(Stream);

            string tempFilePath = Path.Combine(ConfigurationManager.AppSettings["FileServiceRoot" + fileserviceid], path, "files", string.Format("{0}{1}", fileName, Path.GetExtension(originalFileName)));

            if (File.Exists(tempFilePath))
            {
                var outgoingResponse = System.Web.HttpContext.Current.Response;

                outgoingResponse.ContentType = MapContentType(Path.GetExtension(originalFileName));

                Encoding code = Encoding.GetEncoding("gb2312");
                outgoingResponse.ContentEncoding = code;
                outgoingResponse.HeaderEncoding = code;//这句很重

                outgoingResponse.AddHeader("Content-Disposition", "attachment;filename=" + originalFileName);

                //记录log
                Stream result = new FileStream(tempFilePath, FileMode.Open, FileAccess.Read, FileShare.Read);
                return result;
            }
            else
            {
                return default(Stream);
            }
        }

转载一篇,备用:

最近在Asp.net项目中遇到一个问题,实现文件下载时,英文文件名的文件下载时,文件名显示正常,但是如果文件名为中文则显示乱码。

 

在网上google了一下,找到这编文章:解决用ASP.NET下载文件时,文件名为乱码的问题

string encodefileName= System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8); //通过使用HttpUtility.UrlEncode()来对原始文件名进行编码,以解决文件名乱码
Response.AppendHeader("content-disposition", "attachment;filename=" + encodefileName);//附件下载

但是以上这个方案,存在一个问题:就是如果文件名中有空格则空格变成了“+” 号,其他特殊字符尚未测试,有可能还存在其他问题。

 

再次使用google,终于找到老外的一编文章:Display a non-US-ASCII filename in File Download dialog box

他使用如下code解决问题:

string encodefileName=ToHexString(fileName);       //使用自定义的ToHexString()方法,编码原始文件名

Response.AppendHeader("content-disposition", "attachment;filename=" + encodefileName);

        /// <summary>
        /// Encodes non-US-ASCII characters in a string.
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        public static string ToHexString(string s)
        {
            char[] chars = s.ToCharArray();
            StringBuilder builder = new StringBuilder();
            for (int index = 0; index < chars.Length; index++)
            {
                bool needToEncode = NeedToEncode(chars[index]);
                if (needToEncode)
                {
                    string encodedString = ToHexString(chars[index]);
                    builder.Append(encodedString);
                }
                else
                {
                    builder.Append(chars[index]);
                }
            }

            return builder.ToString();
        }

        /// <summary>
        /// Determines if the character needs to be encoded.
        /// </summary>
        /// <param name="chr"></param>
        /// <returns></returns>
        private static bool NeedToEncode(char chr)
        {
            string reservedChars = "$-_.+!*'(),@=&";

            if (chr > 127)
                return true;
            if (char.IsLetterOrDigit(chr) || reservedChars.IndexOf(chr) >= 0)
                return false;

            return true;
        }

        /// <summary>
        /// Encodes a non-US-ASCII character.
        /// </summary>
        /// <param name="chr"></param>
        /// <returns></returns>
        private static string ToHexString(char chr)
        {
            UTF8Encoding utf8 = new UTF8Encoding();
            byte[] encodedBytes = utf8.GetBytes(chr.ToString());
            StringBuilder builder = new StringBuilder();
            for (int index = 0; index < encodedBytes.Length; index++)
            {
                builder.AppendFormat("%{0}", Convert.ToString(encodedBytes[index], 16));
            }

            return builder.ToString();
        }


C#读取中文文件出现乱码的解决方法 本文实例讲述了C#读取中文文件出现乱码的解决方法。分享给大家供大家参考。具体分析如下: 先来看这段代码: FileStream aFile = new FileStream(SingleFile,FileMode.Open); StreamReader sr = new StreamReader(aFile,Encoding.GetEncoding(gb2312),true); string FileContent = sr.ReadToEnd(); aFile.Close(); ProcessData Pd = new ProcessData(); Pd.ProceData(FileC 立即下载

相关推荐

VS2022下C# WPF项目一键打包成独立exe的完整指南

本文提供了一份在Visual Studio 2022中将C# WPF项目一键打包成独立可执行exe文件的完整指南。通过配置项目属性、启用单文件发布和自包含模式,开发者无需依赖第三方工具,即可生成可在未安装.NET运行时的电脑上直接运行的独立程序,极大简化了桌面应用的分发流程。

weixin_28831399的博客 675

ASP.NET 导出文件,解决文件名乱码方法

#region 导出文件,中文文件名转码 /// <summary> /// 导出文件,中文文件名转码 /// </summary> /// <param name="fileName">文件名称,不含后缀</param> /// <param name="ext">文件扩展名,默认为xls</param> /// <...

ASP.NET 872

RK3588 EVB开发板原理图讲解【六】

该原理图展示了eMMC Flash与主控芯片之间的连接关系,以及相关的电源、信号线路和去耦电容等。

weixin_48721556的博客 1200

判断文本文件的编码

调用: Encoding encoding = GetFileEncodeType(sourcePath); TextReader tr = new StreamReader(sourcePath, encoding); #region 判断文本文件的编码 /// <summary> ...

一劍傾城 376

光模块学习总结

光模块简介 什么是光模块: 光模块(Optical Module)作为光纤通信中的重要组成部分,是实现光电转换和电光转换功能的光电子器件。 准确来说,光模块是几种类别的模块的统称,具体包括:光发送模块Transmitter、光接收模块Receiver、光收发一体模块Transceiver和光转发模块Transponder。通常我们所说的光模块,一般是指光收发一体模块(下同)。 工作原理: 光模块工作在OSI模型的物理层,是光纤通信系统中的核心器件之一。它主要由光电子器件(光发射器、光接收器)、功能电路和光(

曹世宏的博客 2万+

CSR-DCF视频目标跟踪源码运行笔记

论文基本信息 论文标题:Discriminative Correlation Filter with Channel and Spatial Reliability 论文作者:Alan Lukezic等 论文出处:CVPR 2017 文章链接:https://arxiv.org/abs/1611.08461 补充材料:https://www.semanticscholar.org/paper/D...

越野者的博客 3405

c#FileStream文件读写可能会出现乱码

在用FileStream写数据时,会出现乱码,建议使用 string msg = "okffffffffffffffff"; byte[] myByte = System.Text.Encoding.UTF8.GetBytes(msg); using (FileStream fsWrite = new FileStream(@...

yeisman的专栏 8109

AutoSar标准官网下载

AutoSar文档下载和文档命名格式。。。

m0_56208280的博客 3554

使用FileResult返回浏览器文件及乱码问题解决

一、向客户端发送文件方法 Asp.Net 中返回文件方法 public void TxtFile(string filename) { //html文件 string path = @"E:\Win10桌面\" + filename; Response.ContentType = "text/xml"; //直接输出文件 Response...

weixin_33912638的博客 987

浏览器缓存导致代码不更新?一招解决部署后用户仍看到旧页面的问题

方案效果适用场景文件名哈希永久解决前端工程化项目HTTP缓存头控制精准控制需服务器权限Meta标签部分生效临时补救方案最佳实践:入口HTML禁用缓存,静态资源使用哈希文件名 + 长期缓存,达到「秒级更新」+「高性能」的平衡!

江拥羡橙的博客 818

基于深度学习的火焰检测系统:YOLOv8 + UI界面 + 数据集详解

YOLO(You Only Look Once)是一种端到端的目标检测算法,其最大优势在于将目标检测任务转化为一个回归问题,可以在一次前向传播中同时完成目标定位和分类。YOLOv8是YOLO系列中的最新版本,相比之前的版本,YOLOv8在精度和推理速度上都做了显著提升,特别是在小物体检测方面表现更加优秀。实时性:YOLOv8具有较高的推理速度,适用于实时火焰检测。高精度:相较于YOLOv7,YOLOv8在精度和小物体检测上有所改进。简单易用:YOLOv8的API简单直观,易于集成和使用。

YOLO 668

tomcat系列之项目下载中文文件乱码问题

最近遇到在tomcat运行的项目下载文件时候都出现了乱码,然后经过排查是只有中文命名的文件才有问题,所以就推测有可能和tomcat的编码有关系 tomcat默认的编码:iso8859-1,所以中文的文件下载的都是有问题的,会出现404的报错 比如下载链接:http://127.0.0.1:8080/MyProject/static/api/操作手册.doc 所以要修改tomcat默认的编码,在to...

Nicky's blog 3906

高通 vs MTK vs 海思:三大平台 ISP 架构横向对比与实战差异分析

随着移动影像能力成为智能终端差异化竞争的核心维度,ISP(Image Signal Processor)架构日益重要。高通、MTK、海思三大 SoC 厂商在 ISP 设计上各具特色,不仅在图像处理链路、模块集成度、算法加速路径等方面存在显著差异,同时也决定了终端厂商在成像质量、调试复杂度与扩展能力上的实际表现。本文将基于真实平台项目经验,横向对比三大主流平台的 ISP 架构关键指标,系统分析其在实际开发过程中的能力边界、工程成本与调优空间,帮助工程师更精准地进行平台选型与优化策略制定。

努力分享一些人工智能、计算机视觉、影像等相关的知识干货! 3957

Django框架中编写下载含有中文名称文件接口的实践

在使用Django框架中编写下载含有中文名称文件接口会出现下载的文件名称出现乱码,或者因为名称乱码导致下载的文件无法打开的问题,在实践中遇到了一些问题,下面是一些记录以及对应的解决办法: 首先,先列出在未解决前,出现的下载问题,如下图所示:(对于的文件已经被我删除了,所以是灰色的并显示已删除) 如上图所示下载的东西很是奇怪,本来我下载的格式是.docx后缀的Word文档,现在变成了如图所示的样子,连预期的中文名称都没有了,通过后台日志分析发现下载后的...

fuda_zwd_2015的博客 420

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

swagger 下载文件名乱码 bug记录

在swagger怎么解析 怎么下载都是乱码。只是在swagger解析不了中文。这样返回响应就是正常的。

weixin_57205390的博客 1030

Probability and Statistics - 4th edition

Probability and Statistics - 4th edition

文件上传到服务器,带中文名称的文件出现乱码问题收集

有这样的一个需求,将数据库里的数据导出到execl表格中,我使用了jxl来编写,导出的execl文件存放在该项目的根目录/resources文件夹下,文件命名中有中文. 本地测试的时候,环境是linux操作系统,tomcat7.0服务器,且tomcat的配置为默认配置 执行程序返回一个下载该execl表格的url http://localhost:8080/xxx-server/resour...

天才小汪汪 4536

汉书HE8,好用的汇编代码编写工具

汉书HE8,好用的汇编代码编写工具早期编写汇编代码所用功能强大

tomcat项目下载中文文件乱码问题

最近遇到在tomcat运行的项目下载文件时候都出现了乱码,然后经过排查是只有中文命名的文件才有问题,所以就推测有可能和tomcat的编码有关系 tomcat默认的编码:iso8859-1,所以中文的文件下载的都是有问题的,会出现404的报错 比如下载链接:http://127.0.0.1:8080/MyProject/static/api/操作手册.doc 所以要修改tomcat默认的编...

weixin_30918633的博客 315

压缩具有中文名称的文件

在Java应用程序中,对文字的编码是以unicode为基础的,压缩、解压的文件名,也是以unicode来编码的,然而,在现今市面上的大部分压缩软件,比如winzip、winrar等,不支持unicode的编码方式,因而用Java软件压缩后的中文文件名显示出来是乱码。对文件的压缩和解压是通过ZipInputStream和ZipOutputStream类来完成,通过修改这两个类的编码方式,可以对中

wudaiwen1022的专栏 990

parse 解码 中文乱码_ContentDisposition 乱码问题记录

最近家里领导安排了一项任务,要从空中课堂网站上批量下载一些教学需要用的文件,做为一名比较懒惰的码农,当然想使用些省力的方法,既能满足领导的要求,又不用自己太费时费事,因此便想用 Python Requests 来实现。整体的思路就是解析HTML代码并找到文件的路径,下载文件并保存到本地。开工后一切顺利,到保存文件这一步卡壳了,为什么下载的文件是乱码?效果如下:而自己手动通过浏览器下载的文...

weixin_39676242的博客 451

解决Strut2下载名称显示中文乱码的问题

最近在做struts2下载文件,发现下载框显示的中文名称总是乱码,经过一遍搜索还是没有解决问题。后来经过自己的仔细分析,终于解决问题。其实解决问题的方法很简单,在此记录一下,以便日后查找或可以帮到有同样问题菜鸟们。 具体方法如下: 在getInputStream的方法中添加如下代码: File file = new File(filePath); //filePath是jsp传过来的文件路径

wuqingyou_w的专栏 646

Java Web 项目解决IE、火狐、google中文乱码的问题

最近做了一个文件上传下载的功能,但是在下载的时候,出现了一点问题,文件名包含中文的时候,IE、google浏览器文件名称没有乱码,但是火狐浏览器文件名乱码,从网上找了很久都没有解决,记录一下自己解决此此问题的过程。 1、前端页面传参 location.href = "${path}/AppFileDownload.action?file_path="+file_path+"&file...

qq_35915790的博客 1153

用火狐浏览器下载中文文件名的文件乱码及其解决

java写的下载,用IE默认下载和360浏览器下载都很正常,就是用火狐浏览器下载时,文件名称的中文字为乱码,解决方式记录于此: 先在页面做下判断,判断是什么浏览器,然后传一个参数到servlet,进行用不同的编码方式: 火狐的: response.addHeader("Content-Disposition","attachment;filename="+newString(...

weixin_30672019的博客 642

jsp页面上传文件,下载文件,设置下载文件格式和预览文件

jsp页面上传文件 如下是form表单中的上传文件表格,该表格有个id=“addFile”,还有个onchange="checkFile()事件 <tr height="35px"> <td width="25%" height="20px" align="right">添加回款记录:</td> <td width="75%" height="20px" align="left"> <input class="easyui-filebox"

凌枫ozo的博客 1182

WEB_tar打包 后中文文件名乱码的问题

原文地址:http://blog.csdn.net/agoago_2009/article/details/28270257 tar zcvf xxx.tar.gz *files  tar jcvf xxx.tar.bz2 *files  因文件名有中文字符,放到windows的机器上后解压中文变成乱码。  7zip和rar会记录字符集,自动转换,而tar不会:  比如

迎难而上 2356

linux 导出 excel文件名乱码,excel导出,文件名称中文乱码问题 · 大腿的博客

8种机械键盘轴体对比本人程序员,要买一个写代码的键盘,请问红轴和茶轴怎么选?记录一个excel导出遇见的中文名称的问题接到项目需要有excel的导入导出功能,基于poi实现还是挺简单的,文件的导入导出都已经实现,但是导出给前台的文件名称总是乱码,一开始以为是我后台的问题,我找解决方法找了两天但是都不外乎就那几个。最后发现是前台的代码问题…后台导出代码controller接口12345678910...

weixin_39969611的博客 1202
上一篇: SQL Server 树型结构查询指定节点 SQL Server 树型结构查询的排序
下一篇: 一篇依赖倒置,控制反转,依赖注入好文
WDYDXF
博客等级 码龄17年 21粉丝 100原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值