简体   繁体   English

将代码从ubuntu复制到Windows时出现乱码

[英]garbled when copy code from ubuntu to windows

1. I work on ubuntu 12.04 and my friend works on win7.
2. It is java project based on maven. 
3. We both use eclipse with UTF-8

I archieve my project to project.zip, and send it with email. 我将项目归档到project.zip,并通过电子邮件发送。

1. `mvn jetty:run` works fun for him.
2. `mvn jetty:run` not works after `mvn clean`. 
   [error: package com.myproject.xxxx not exist]

So, what cause the problem? 那么,是什么原因引起的呢?

Right click on file in Eclipse, then properties -> resource - change text file encoding to UTF-8 右键单击Eclipse中的文件,然后单击属性->资源-将text file encoding更改为UTF-8

This can also be set as the project or workspace default 也可以将其设置为项目或工作区默认值

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Putty-Windows中的SSH将ubuntu中的文件复制到Windows - Copy a file in ubuntu to windows using putty - ssh from windows 在 Ubuntu 和 Windows 之间移动时出现 java 代码错误 - Error of java code when moving between Ubuntu and windows Java窗口滞后在Ubuntu上,但不滞后于代码未滞后的窗口 - Java window lagging on Ubuntu but not windows when code isn't lagging 从linux jdk启动jvisualvm时出现乱码 - Garbled characters when lauching jvisualvm from linux jdk UnsatisfiedLinkError (NativeIO$Windows.access0) 将 mapreduce 作业从 windows 提交到 hadoop 2.2 到 ubuntu 时 - UnsatisfiedLinkError (NativeIO$Windows.access0) when submitting mapreduce job to hadoop 2.2 from windows to ubuntu Java 代码在 Windows 中有效,但在 Linux(Fedora 或 Ubuntu)中无效 - Java code worked in Windows but not in Linux (Fedora or Ubuntu) Java:Linux上的字体看起来很乱,但在Windows上很好 - Java: Fonts look garbled on Linux, but fine on windows 通过Windows中的Java程序从我的VM的Ubuntu计算机中调用Perl代码 - Invoking perl code from my VM's Ubuntu machine through a java program in Windows 将stderr重定向到stdout时,gradle的输出乱码。 Jenkins Gradle插件受苦 - Garbled output from gradle when redirecting stderr to stdout. Jenkins gradle plugin suffers 将文件从Android复制到Windows - Copy file from Android to Windows
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM