去网上查了一下原因,是因为Windows下是GBK编码,而Ubuntu下是utf-8,所以乱码了
参考资料:
解决办法:
1.终端下输入:unzip -O GBK your_file_name.zip
2.终端下输入:unar your_file_name.zip
如果你的系统中没有unar,则需要:sudo apt install unar
至于文件乱码,还是参考链接里面的吧,还没试过
墨衍会员
·
AI 创作全网分发
墨衍智能分发
本文由作者通过墨衍一键同步至各平台
1分发平台
400+累计阅读
441平均单平台
已同步平台
CSDN
微信公众号
微博
知乎
掘金
百家号
博客园
抖音
小红书
你的文章也可以这样分发
墨衍会员 ¥399起/年,写一次发全网
我也要 →
码龄12年
去网上查了一下原因,是因为Windows下是GBK编码,而Ubuntu下是utf-8,所以乱码了
参考资料:
解决办法:
1.终端下输入:unzip -O GBK your_file_name.zip
2.终端下输入:unar your_file_name.zip
如果你的系统中没有unar,则需要:sudo apt install unar
至于文件乱码,还是参考链接里面的吧,还没试过
[多智能体强化学习] 王树森YouTube课程笔记
前言 近期在设计V2X资源分配任务下的状态空间和动作空间,可以说是一筹莫展,是自己菜,现在看来可能也是涉及到一些关于多智能体强化学习实现过程中过于细节的点,目前的知识储备还不够。因此打算用半周到一周的时间重电,希望之后能有进展。 本文内容来自于友人LX所推荐的油管教程,链接如下:多智能体强化学习,一共两节课40min左右。教程废话不多干货不少,老师的声音还好听,推荐直接去看原教程。 这里还要多一嘴,那就是对于强化学习来说,单主体和多主体的界限,在某种程度上来说是很模糊的,并不是场景中有多个主体需要..
linux系统 unzip命令解压出来的中文乱码问题随记
linux系统 unzip命令解压出来的中文乱码问题随记
从‘平行’到‘鱼骨’:手把手拆解AlGaN/GaN HEMT多栅指结构的布局优化实战
本文深入探讨了AlGaN/GaN HEMT多栅指结构的布局优化,从传统的平行栅结构到创新的鱼骨栅结构,详细解析了如何通过优化信号路径和热管理提升功率器件的性能。文章结合实测数据和EDA工具,展示了鱼骨栅结构在相位一致性、热阻和版图利用率方面的显著改进,为射频功率放大器设计提供了实用指导。
unzip解压中文文件名乱码
由于中文的Windows使用的是GBK编码,而Linux默认使用UTF-8编码的,如果在Windows打包带中文文件的zip包,则这个zip包在Linux下面使用默认的归档管理器打开这个zip包的时候,中文文件名会显示乱码。 解决方法,通过命令处理: unzip -O GBK *.zip Ubuntu是基于Debian,Debian的unzip是改过的,其他系统的unzip已经没有-O选项。 ...
macOS Jdk1.8安装(目前主流版本的jdk)
添加环境环境变量,类似于windows的高级设置中path配置的环境变量。查看 JAVA_HOME 目录。查看 JDK 版本信息。一直下一步安装就好了。在终端的根目录下运行。
银河麒麟V10 SP3离线安装Nginx1.21.5全记录(附11个rpm包下载清单)
本文详细记录了在银河麒麟V10 SP3操作系统上离线安装Nginx 1.21.5的全过程,包括11个必备rpm包的下载清单。通过分步骤的实战指南,帮助用户在国产化环境中高效部署Nginx服务,涵盖安装、配置、调优及故障排查等关键环节,特别适合金融、政务等对安全性要求高的场景。
解决Linux下unzip解压缩中文乱码的问题
解决linux unzip解压中文乱码问题,Linux中unzip解压时中文乱码 Linux unzip命令用于解压缩zip文件 unzip为.zip压缩文件的解压缩程序。 #语法 unzip(选项)(参数) 在windows上压缩的文件,linux 用unzip命令 直接解压的时候会导致像这样的中文乱码,因为它会以默认编码来解压压缩包。 解决办法: unzip -O GB...
【从零开始vnpy量化投资】十一. 实盘接入测试与正式实盘
本篇主要讲解如何使用vnpy进行实盘交易,由于上一节我们已经学习了模拟盘运行,如果一切顺利的话,只需要通过穿透测试,就可以正式部署实盘了。
unzip命令解压中文乱码
原来在windows上的zip文件, 在CentOS上使用unzip直接解压会显示乱码, 因为windows简体中文版的操作系统一般上用的是GBK编码, 所以会导致这个问题, 可以使用-O参数来解决, 即: unzip -O GBK file.zip; 如果有多个, 可以批量解压, 很方便 for i in $(ls -l | grep -E .*\.zip); do unzip -...
第1章第11节:创建可容纳多行滚动文字的输入框TextEditor [SwiftUI快速入门到实战]
TextField可以让用户输入单行的文字内容,若想输入多行的文字内容,可以使用能够容纳多行滚动文字的 TextEditor。 定义一个字符串属性,用来存储用户输入的文字内容。接着定义一个布尔属性,用来标识是否弹出警告窗口,以显示用户输入的内容。 TextEditor是由UIKit中的UITextView演变而来,因此可以在init方法中,通过UITextView修改TextEditor的外观属性。 添加一个VStack视图,作为子视图的容器。 创建一个TextEditor,Te..
【系统架构设计师】十、统一建模语言UML(基本概念|UML2.0|SysML)
UML 2.0 提供了 14 种图,分别是类图、对象图、用例图、序列图、通信图(协作图)、状态图、活动图、构件图(组件图)、部署图、制品图、组合结构图、包图、交互概览图和计时图(定时图)。序列图、通信图、交互概览图和计时图均被称为交互图。 系统建模语言(SysML)是一种通用图形建模语言,用于指定,分析,设计和验证可能包括硬件,软件,信息,人员,程序和设施的复杂系统。特别是,该语言提供了图形表示,其具有用于建模系统需求,行为,结构和参数的语义基础,用于与其他工程分析模型集成。
unzip命令解压出现中文乱码
乱码问题通常与字符编码不兼容有关。解决这类问题通常需要你了解文件或系统的原始编码和目标编码,并使用适当的工具或命令来进行转换。在处理ZIP文件时,特别要注意文件名和文件内容可能使用不同的编码。
基于simulink的预测电流控制策略的三相逆变器仿真
本文详细介绍了在Simulink中实现基于预测电流控制策略的三相逆变器仿真方法。主要内容包括:准备工作(安装必要软件及工具箱)、构建三相逆变器基础模型、设计预测电流控制器(包含状态空间建模和控制器设计)、实现控制逻辑、添加示波器观察输出、配置仿真参数以及运行仿真分析结果。通过MATLAB代码示例和Simulink模块说明,展示了如何选择最优开关状态来最小化电流误差。该仿真方法为研究快速响应、高精度的逆变器控制提供了实用工具,但需注意实际应用中可能需要的调试工作。
Ubuntu环境解压中文乱码的三种方法
梦回刚读大学时折腾KDE。Linux固有诸多不可替代的优势,然而总能在编码、IO之类的小问题上搞点无伤大雅但需要手动解决的“尴尬”。 Windows压缩文件时,默认以系统编码中文来处理。由于zip文件中没有声明编码,所以 Linux上的unzip解压中文文件名会出现乱码,有三种方式解决问题: 通过unzip命令解压,指定字符集参数 unzip -O GBK filename.zip 也可以尝试将参数GBK替换为CP936、GB18030 有趣的是unzip的manual中并无这个选项的说明,unzip --
jre9下载 jdk9
(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】
C# WinForm 基于DirectShow.dll编写的程序,可边预览边保存视频,音频和图片
基于微软的DirectShow.dll的二次开发1.自动识别连接的摄像头跟麦克风且可以对其进行选择(默认选中第一个)2.可录制wmv和avi两种格式的视频并且都带有音频,avi可以录制的分辨率和帧数进行选择,wmv默认进行了淸晰度优化如不喜欢可去除代码中有相关提示3.可在预览点开之后进行拍照,也可边录制视频边拍照4.添加了视频和音频的压缩功能(酌情使用)这次二次开发发现C#对DirectShow的相关信息太少,这次做完也不敢藏私共享出来,还望大家指正
【error】unzip解压中文压缩包出现乱码
运行命令:unzip '*.zip'(为了解压目录下全部文件) 出现问题:unzip解压中文安装包出现乱码 问题原因:在window下创建的中文文件默认gbk编码,而MAC则是utf-8编码。 解决方式:unzip -O GBK xxx.zip 参考博客:https://blog.csdn.net/gatieme/article/details/44807105 unzip的参数...
深度学习工具包 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');```[](https://bitdeli.com/free "Bitdeli Badge")
Linux中unzip解压缩中文乱码的问题
问题:由于中文的Windows使用的是GBK编码,而Linux默认使用UTF-8编码的,如果在Windows打包带中文文件的zip包,则这个zip包在Linux下面使用默认的归档管理器打开这个zip包的时候,中文文件名会显示乱码。
lwip-2.0.3
lwip是瑞典计算机科学院(SICS)的Adam Dunkels 开发的一个小型开源的TCP/IP协议栈。实现的重点是在保持TCP协议主要功能的基础上减少对RAM 的占用。
Ubuntu下解压zip文件出现中文名乱码情况
乱码原因 其实,并不是所有zip文件解压后都是乱码的,只有windows下压缩的zip在ubuntu中会出现这种情况。 其实就是windows和ubuntu下压缩的编码格式不同。windows下的编码格式为GBK,Ubuntu下的为UTF-8. 解决方法 -O指定字符编码 ,-d 解压到 后面这个目录下: unzip -O GBK 配套资源翻译.zip -d 配套资源翻译 解压很复杂的中文名文...
unzip 分包_unzip解压中文乱码
1 问题描述 直接unzip xxx.zip乱码,肯定是编码问题了不用问。但是unzip没有指定编码的选项: 网上的解决方案如下:unzip -O GBK/GB18030CP936 xx.zip但是没有-O选项啊。2 解决办法解决办法是安装unzip-iconv,笔者系统为manjaro,直接安装会提示会与unzip冲突: unzip-iconv是一个补丁,但是好像没被官方接纳,比如Ubun...
Ubuntu18.04 解压zip文件乱码的解决方法
在Ubuntu的系统下解压zip文件的时候居然出现了乱码,通过查找网上的资料,解决的办法有两种 一、通过unzip行命令解压,指定字符集,由于zip格式中并没有指定编码格式,Windows下生成的zip文件中的编码是GBK/GB2312等,因此,导致这些zip文件在Linux下解压时出现乱码问题,因为Linux下的默认编码是UTF8。目前网上流行的是unzip -O cp936的方法,但一些linux发行版unzip是没有-O这个选项的。Ubuntu 12.04后续版本是有的。 命令格式: pipci@Ub
linux系统解压zip文件名乱码
这是 zip 格式本身的缺陷导致的。zip 格式并没有指定文件名的编码格式,在压缩和解压时均使用操作系统本地编码,Windows 下简体中文为 GBK/GB2312 编码,Linux 下为 UTF-8 编码,两者不一致就造成了乱码。Linux 解压 zip 压缩包时,会碰到文件名乱码的情况!(参数 -O 用于指定字符集,注意是大写O!
解决centos7 使用unzip解压带有中文名的文件时出现乱码
解决centos7 使用unzip解压带有中文名的文件时出现乱码 unzip -O GBK pics.zip -d pics_zn 这样就没有乱码了, 原因分析: 原来在windows上的zip文件, 在CentOS上使用unzip直接解压会显示乱码, 因为windows简体中文版的操作系统一般上用的是GBK编码, 所以会导致这个问题, 可以使用-O参数来解决, 即: unz...
Ubuntu 下unzip 命令解压乱码
Ubuntu系统使用unzip解压导致中文乱码解决方案有两种:第一种:使用sudo unar 文件名.zip这个方法是最简单的,亲测可用。第二种:unzip -O GBK 文件名.zip其中字符可以是CP936、GBK、GB18030三种中的任一一种但是在使用过程中可能不支持-O参数,那么就需要给unzip打补丁。根据GitHub - ikohara/dpkg-unzip-iconv...
ubuntu下unzip解压zip文件中文乱码问题
1、加压时-O指定字符编码 unzip -O GBK abc.zip 2、解压很复杂的中文名文件称如果报错,用引号括起来即可 unzip -O GBK '既有空格 又有括号(之类的)压缩文件.zip' ---------------------------------------------------------------------------------------------...
Linux下unzip解压乱码问题的解决
unzip解压乱码问题解决
linux开发遇到的一些命令
unzip -O gb2312 基于多态的职工管理系统.zip 使用 cp936、GBK 或 GB2312 编码解压压缩包即可,下面三条命令任选其一执行:unzip -O cp936 压缩包路径 unzip -O gbk 压缩包路径 unzip -O gb2312 压缩包路径注意,解压后的结果放在了主目录里 也可以在当前目录终端运行该语句,最后解压在当前终端里
1733
1418
2875

被折叠的 条评论
为什么被折叠?



