Skip to content

Commit 4653b70

Browse files
committed
Added file.encoding=UTF8
1 parent dc7210f commit 4653b70

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.travis.yml

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

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

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

1316
after_success:
17+
- export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"
1418
- mvn coveralls:report -Dgpg.skip
1519

1620
cache:

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,11 @@ reference C implementation.
220220
The library requires a minimum Java language revision level 6, but has been tested and verified to work
221221
with JDK 1.6, JDK 1.7 and JDK 1.8.
222222

223+
First, make sure you have the correct file encoding (UTF8) set for Java on your system.
224+
Include this environment variable in your `.profile` or `.bashrc`:
225+
226+
export JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8"
227+
223228
To build the library:
224229

225230
cd <MAPCODE-HOME>

0 commit comments

Comments
 (0)