简体   繁体   中英

not sure it's Git issue or Ubuntu for characher encoding

facing issue while checking out code on Ubuntu , it replace © with © which in turn failing my build saying cannot find symbol. no issues on window , can somebody give me clue

it's copyright statement in .java code , i am running my jenkins job which is cloning source from git repository and building it using mvn. my pom.xml explicitly set to compile such code

1.6 UTF-8

This work fine when i run on windows , but when i do it on Ubuntu , it's get the java file with © and my build fails

You entered the copyright character with UTF-8 encoding, but are displaying the file or page in a single byte encoding such as Latin-1 or Windows-1252. You'll have to be a little more specific about what's going on. If you're producing HTML for a browser, try not to hard code (binary) non-ASCII characters in general code (ie, non-"language" files), but use HTML entities instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM