Io Error While Decoding With Utf-8
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and please try specifying another one using the -encoding option policies of this site About Us Learn more about Stack Overflow the scalac classpath company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Scala Play 2.0. Compilation error: IO error while decoding up vote 10 down vote favorite I downloaded multi-module Scala project from GitHub (https://github.com/henrikengstrom/roygbiv), and one of the module is Play 2.0 module. So I can run whole application using SBT's run command on each module, and all works fine. But when I add to Play 2.0 template (index.scala.html) non-English characters and press F5 in browser I get compilation error: IO error while decoding C:\Users...\web\target\scala-2.9.1\src_managed\main\views\html\index.template.scala with UTF-8 Please try specifying another one using the -encoding option Play 2.0 module I run also using SBT's run command, not using Play console. I checked source file encoding - it is UTF-8. Also tried UTF-8 without BOM. Where can be problem? scala playframework playframework-2.0 sbt multi-module share|improve this question edited Jun 13 '13 at 8:19 asked May 13 '13 at 19:33 MyTitle 2,5152184174 opened second bounty, now 300. –MyTitle Jun 13 '13 at 8:20 add a comment| 5 Answers 5 active oldest votes up vote 3 down vote accepted +300 Your problem seems to be this: your intermediate scala files are not encoded correctly. Here is the process: Play takes your template file (foo.scala.html) and translates this into Scala: target/scala-2.10/src_managed/main/views/html/foo.template.scala. This then gets compiled by sbt to .class files and run by play. When sbt creates these intermediate files, it creates them with the default encoding (in my case a Windows machine so UTF-8 without BOM - your machine may differ). Importantl
Sign in Pricing Blog Support Search GitHub This repository Watch 20 Star 94 Fork 23 scala-ide/scala-worksheet Code Issues 69 Pull requests 1 Projects 0 Wiki Pulse Graphs New issue IO error while decoding
scala-tools scala-internals scala-xml scala-sips IRC Channel Blogs & News Sygneca Wiki Scala Jira Language ResearchGrants Papers Talks Theses Courses Presentations In the PressArticles Interviews and Panel Talks News Archive The http://www.scala-lang.org/old/node/4594.html Scala Team Scala's Prehistory Contact Us DocumentationLearning Scala Tour of Scala ManualsA http://scala-user.narkive.com/SLrlmBdf/scala-error-io-error-while-decoding-with-utf-8 Brief Scala Tutorial Scala by Example Scala Overview Scala Language Specification Scala Improvement Process Translations Scaladoc 2 Manual Books Scala APIscaladoc (stable) scaladoc (nightly) compiler API (nightly) Download locally Setup & Getting StartedGetting Started with Scala Java to Scala Windows Mini-Guide Setting PATH on Windows fsc and the OSX io error firewall Programming GuidesScala Actors Scala on Android Scala on Microsoft .NET Scala on Google App Engine Other GuidesMaven for Beginners Scala and JUnit on Eclipse Scala, Emacs and Yasnippet FAQs Code ExamplesHello world! Simple Snippets Advanced Examples SoftwareDownload ScalaLatest Stable Release Previous Releases Nightly Builds Git Repository Distribution Content IDE and Editor pluginsIDE Plugins Tool Support Libraries and ToolsLibraries Development Tools Program io error while Testing Other Scala-Related Scala License Scala DevelopersDeveloper's GuidesBuild Scala from the Source Writing Compiler Plugins Scala Ant Tasks Compiler Internals Improvement Documents Bug Tracking & TestingScala Bugtracker Scala Jenkins Code Review Codebase ProgressLanguage Changes Download Stats Maintainers Contributor Agreement Home » Forums » Scala User scala “error: io error while decoding” “with utf-8” 6 replies Fri, 2009-12-18, 22:15 deepblue_other Joined: 2009-12-18, hello everyone Im having a problem running a compiled .class file with scala this thing keeps coming up I checked that all my source files are utf8 encoded, and Im using '-encoding UTF8' flag with both scalac and scala command line tools any ideas? ps Im compiling and running on Ubuntu, Scala 2.7.7 Im editing in using jEdit from a windows machine, and I checked to make sure all my .scala files are UTF8 encoded. scalac compiles all the files fine, with a "-encoding UTF8" flag thank you Top Login or register to post comments Fri, 2009-12-18, 23:07 #1 bmaso Joined: 2009-10-04, Re: scala “error: io error while deco ding” “with utf-8” What keeps "coming up"? You left essential implicit evide
file with scalathis thing keeps coming upI checked that all my source files are utf8 encoded, and Im using '-encodingUTF8' flag with both scalac and scala command line toolsany ideas?ps Im compiling and running on Ubuntu, Scala 2.7.7Im editing in using jEdit from a windows machine, and I checked to make sureall my .scala files are UTF8 encoded. scalac compiles all the files fine,with a "-encoding UTF8" flagthank you--View this message in context: http://old.nabble.com/scala-%E2%80%9Cerror%3A-io-error-while-decoding%E2%80%9D-%E2%80%9Cwith-utf-8%E2%80%9D-tp26849825p26849825.htmlSent from the Scala - User mailing list archive at Nabble.com. Brian Maso 2009-12-18 22:01:43 UTC PermalinkRaw Message What keeps "coming up"? You left essential implicit evidence out.Best regards,Brian Maso(949) 395-8551brian-zVB9M1GYnxxPzT/***@public.gmane.orgtwitter: @bmasoskype: brian.masoLinkedIn: http://www.linkedin.com/in/brianmasoPost by deepblue_otherhello everyoneIm having a problem running a compiled .class file with scalathis thing keeps coming upI checked that all my source files are utf8 encoded, and Im using '-encodingUTF8' flag with both scalac and scala command line toolsany ideas?ps Im compiling and running on Ubuntu, Scala 2.7.7Im editing in using jEdit from a windows machine, and I checked to make sureall my .scala files are UTF8 encoded. scalac compiles all the files fine,with a "-encoding UTF8" flagthank you--http://old.nabble.com/scala-%E2%80%9Cerror%3A-io-error-while-decoding%E2%80%9D-%E2%80%9Cwith-utf-8%E2%80%9D-tp26849825p26849825.htmlSent from the Scala - User mailing list archive at Nabble.com. deepblue_other 2009-12-18 22:08:27 UTC PermalinkRaw Message the error thats in the title of the message, sorry for not being clear“error: io error while decoding FileName.class with utf-8please try specifying another one using the -encoding option”this is returned by "scala" runner, not the scalac compiler... the .scalafiles compile fine, its when I try to run the produced .class files that Iget the errorsPost by Brian MasoWhat keeps "coming up"? You left essential implicit evidence out.Best regards,Brian Maso(949) 395-8551skype: brian.masoLinkedIn: http://www.linkedin.com/in/brianmasoPost by deepblue_otherhello everyoneIm having a problem running a compiled .class file with scalathis thing keeps coming upI checked that all my source files are utf8 encoded, and Im using '-encodingUTF8' flag with both scalac and sca