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

Set proper encoding for the source files #3

Closed
netvisao opened this issue Oct 12, 2013 · 7 comments
Closed

Set proper encoding for the source files #3

netvisao opened this issue Oct 12, 2013 · 7 comments

Comments

@netvisao
Copy link

sbt compile outputs the following on an Ubuntu 64bits

[info] Loading project definition from /home/mea/Development/sandbox/textteaser/project
[info] Set current project to textteaser (in build file:/home/mea/Development/sandbox/textteaser/)
[info] Compiling 9 Scala sources to /home/mea/Development/sandbox/textteaser/target/scala-2.10/classes...
[error] IO error while decoding /home/mea/Development/sandbox/textteaser/src/main/scala/com/textteaser/summarizer/Main.scala with UTF-8
[error] Please try specifying another one using the -encoding option
[error] one error found
error Compilation failed
[error] Total time: 3 s, completed Oct 12, 2013 11:46:31 AM

@melpomene
Copy link

I have the same issue on mac, just converted the Main.scala file to UTF-8 with intellij and problem was solved.

@netvisao
Copy link
Author

I think it has to do with the files being committed from a windows system.
Dos2unix did not do the full trick for me. I wonder if there is another cli
solution to it.

Sent via a mobile device.
On Oct 12, 2013 12:02 PM, "Christopher Käck" notifications@github.com
wrote:

I have the same issue on mac, just converted the Main.scala file to UTF-8
with intellij and problem was solved.


Reply to this email directly or view it on GitHubhttps://github.com//issues/3#issuecomment-26200112
.

@tkroman
Copy link
Contributor

tkroman commented Oct 12, 2013

Well, the problem is with line #30 (ÒpitchÓ word). My iconv doesn't seem to be able to handle it as well.

@tkroman
Copy link
Contributor

tkroman commented Oct 12, 2013

I fixed this in #6

@MojoJolo
Copy link
Owner

Thanks @cdshines. I also encountered this issue. Will check it out later and merge it.

@jmazin
Copy link

jmazin commented Oct 14, 2013

Hi -- I think the issue in this case is the cut-and-pasted text at Main.scala:30, specifically the use of the curly double-quotes: and .

@MojoJolo
Copy link
Owner

Sorry about the encoding issues. Some clumsy issues right there. Anyways. @cdshines fixed it and I merged it already. Thanks. Will close this issue.

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

5 participants