Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Which codepage the code used? #19

Open
srw962 opened this issue May 26, 2012 · 1 comment
Open

Which codepage the code used? #19

srw962 opened this issue May 26, 2012 · 1 comment

Comments

@srw962
Copy link

srw962 commented May 26, 2012

My Computer is Windows8 Chinese Culture。And my VS2010 is Chinese Culture too.
When use the follow command to install nantcontrib, I got an error.
nant -D:nant.dir="C:\Program Files\NAnt" -f:NAntContrib.build install

the error was:
[csc] Compiling 191 files to 'D:\OpenSource\github\nantcontrib\build\nantc
ontrib-debug\bin\NAnt.Contrib.Tasks.dll'.
[csc] d:\OpenSource\github\nantcontrib\src\Tasks\Mks\History.cs(156,57): e
rror CS1010: 常量中有换行符
[csc] d:\OpenSource\github\nantcontrib\src\Tasks\Mks\History.cs(164,67): e
rror CS1010: 常量中有换行符

BUILD FAILED

when I try other codepage, the error was the same.
nant -D:nant.dir="C:\Program Files\NAnt" -D:codepage=20106 -f:NAntContrib.build install

which codepage should I use?

@xinhuang
Copy link

You can copy code from github webpage by view as raw, and save as UTF-8.
It works for me. (And I think when later you commit it as UTF-8, it will prevent similar problem from happening again.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants