"Müller"res0: String = M?llerThe same happens in my first scala trial program:import scala." name="description" /> "Müller"res0: String = M?llerThe same happens in my first scala trial program:import scala." />

scala default encoding in windows shell


Beginners question: I'm using scala 2.11.4 on a windows 8 machine in the standard command shell (codepage is 850). If I type "Müller" at the scala-prompt scala>"Müller" res0: String = M?ller

The same happens in my first scala trial program:

import scala.io.StdIn.readLine object Hello { def main(args: Array[String]) { val myname=readLine("What is your name?","ISO-8859-1") println("Hallo " + myname + "!") } }

Calling it via "scala Hello" yields: What is your name?Müller Hallo M?ller!

I guess println uses a different encoding as a default (The "ISO-8859-1"-part did not change anything, by the way)?


scala> System.getProperty("file.encoding") showed cp1252. So I generated a environment variable (thanx to Martin Sturm) JAVA_OPTS="-Dfile.encoding=CP850" and currently everything works as expected (München ist schön).


  • Passing value with spaces as cmd parameter to programs
  • OSError: [Errno 8] Exec format error with GeckoDriver and Selenium on MacOS
  • Could not load file or assembly in Visual Studio 2012, C#
  • How can I get the reply of SMS that sent to a mobile device?
  • How can I cast an expression from type interface, to an specific type
  • browserify 'Error: Cannot find module' in trying to fix 'Uncaught reference error: re
  • VSTS - App Center - Yaml - Endpoint could not be found
  • Run wine commands from Python 3.6 on Mac OSX
  • How to solve Access denied in gitlab?
  • How do I call templates with same names at different directories in Django?
  • Rails actionmailer open host email app
  • Set= log.txt in batch
  • LINQ - search between IList and list of strings
  • EGit and multiple “users” on same machine
  • JSPM - Are there any advantages/disadvantages in including client side library files using import vs
  • Read stdin in chunks in Bash pipe
  • System call time out?
  • css font-size and line-height not matching the baseline
  • How can I count unique terms in a plaintext file case-insensitively?
  • Graceful pod termination
  • insert a picture into database(sqlite) with java code. what should i do?
  • Getting error java.io.FileNotFoundException (log4j log file) at the time of publish project on cloud
  • Interpreting STRACE output - pipes and forks
  • Connecting bluetooth device to windows phone 8 application
  • Memory error in python- how to use more memory
  • IE11 throwing “SCRIPT1014: invalid character” where all other browsers work
  • Differences in dis-assembled C code of GCC and Borland?
  • jQuery .attr() and value
  • Algorithm for a smudge tool?
  • Why winpcap requires both .lib and .dll to run?
  • Return words with double consecutive letters
  • AT Commands to Send SMS not working in Windows 8.1
  • Python: how to group similar lists together in a list of lists?
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • Angular 2 constructor injection vs direct access
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • apache spark aggregate function using min value
  • Checking variable from a different class in C#
  • Busy indicator not showing up in wpf window [duplicate]
  • Sorting a 2D array using the second column C++