[Building Sakai] (no subject)

Seth Theriault slt at columbia.edu
Fri Jan 24 07:50:18 PST 2014


On Fri, Jan 24, 2014 at 9:02 AM, Matthew Jones <matthew at longsight.com> wrote:

> Running the program below (FileEncoding.java) on Ubuntu results in
> "file.encoding=UTF-8", but running it under Windows 7 it says
> "file.encoding=Cp1252". If this is a required setting for Windows to change
> the encoding (or some OSes) it's worth adding to the UTF-8 guide.

On OS X, for example, the default is "MacRoman" and Windows XP is also Cp1252.

In addition, if for some reason, you don't have access to specify the
parameters, you can also set the environment variable
JAVA_TOOL_OPTIONS to "-Dfile.encoding=UTF-8" per:

http://stackoverflow.com/questions/361975/setting-the-default-java-character-encoding/623036#623036

Seth



More information about the sakai-dev mailing list