Skip to content

Commit fc28153

Browse files
committed
Added file.encoding=UTF8
1 parent 4a99877 commit fc28153

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ sudo: false
55
jdk:
66
- oraclejdk8
77

8-
install: mvn install -DskipTests
8+
install:
9+
- export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"
10+
- mvn install -DskipTests
911

1012
script:
13+
- export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"
1114
- mvn verify
1215

1316
cache:

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
This Java project contains example code of how to use the Mapcode
99
Library.
1010

11+
First, make sure you have the correct file encoding (UTF8) set for Java on your system.
12+
Include this environment variable in your `.profile` or `.bashrc`:
13+
14+
export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"
15+
1116
To run the examples, simply execute:
1217

1318
mvn clean install

0 commit comments

Comments
 (0)