From 83bf10d600966dcd369742a0ac5a5596d77e63b4 Mon Sep 17 00:00:00 2001 From: skozyr Date: Fri, 10 Aug 2018 16:22:13 -0400 Subject: [PATCH] Added explicit Java source encoding At my PC javac use codepage CP1251 by default and fails to compile file OsmAnd-java/src/main/java/net/osmand/data/MapObject.java because in line 26 there are some unicode symbols. To fix compilation errors I've added UTF8 encoding configuration to Osmand-java/build.gradle file --- OsmAnd-java/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/OsmAnd-java/build.gradle b/OsmAnd-java/build.gradle index 223203d9fd..093c9747e9 100644 --- a/OsmAnd-java/build.gradle +++ b/OsmAnd-java/build.gradle @@ -8,6 +8,7 @@ configurations { tasks.withType(JavaCompile) { sourceCompatibility = "1.7" targetCompatibility = "1.7" + options.encoding = 'UTF-8' } task collectRoutingResources(type: Sync) {