Error Io Error While Decoding With Utf-8
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us
Scalac Io Error While Decoding
Learn more about Stack Overflow the company Business Learn more about hiring developers io error while decoding main.scala with utf-8 or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack
Io Error While Decoding With Utf 8 Play
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 play framework io error while decoding 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 please try specifying another one using the -encoding option 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,4702083173 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). Importantly, this encoding sticks around, so even if I change the encoding of the original template file (foo.scala.html to UTF-16), the encoding of the .scala file is still the same (UTF-8 without BOM
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
Scalac Classpath
and Panel Talks News Archive The Scala Team Scala's Prehistory Contact Us DocumentationLearning Scala Tour of Scala ManualsA 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 http://stackoverflow.com/questions/16529753/scala-play-2-0-compilation-error-io-error-while-decoding to Scala Windows Mini-Guide Setting PATH on Windows fsc and the OSX 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 http://www.scala-lang.org/old/node/4594.html Nightly Builds Git Repository Distribution Content IDE and Editor pluginsIDE Plugins Tool Support Libraries and ToolsLibraries Development Tools Program 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
Sign in Pricing Blog Support Search GitHub This repository Watch 20 Star 94 Fork https://github.com/scala-ide/scala-worksheet/issues/120 23 scala-ide/scala-worksheet Code Issues 69 Pull requests 1 Projects 0 Wiki Pulse Graphs New issue IO error while decoding