diff --git a/src/main/java/ru/serce/jnrfuse/AbstractFuseFS.java b/src/main/java/ru/serce/jnrfuse/AbstractFuseFS.java index e5b90bd..de4bc51 100755 --- a/src/main/java/ru/serce/jnrfuse/AbstractFuseFS.java +++ b/src/main/java/ru/serce/jnrfuse/AbstractFuseFS.java @@ -62,7 +62,11 @@ public AbstractFuseFS() { } break; case WINDOWS: - String winFspPath = WinPathUtils.getWinFspPath(); + if (!System.getProperty("file.encoding").equals("UTF-8")) + { + throw new FuseException("UTF-8 encoding required! Current encoding: " + System.getProperty("file.encoding")); + } + String winFspPath = WinPathUtils.getWinFspPath(); libFuse = loader.load(winFspPath); break; default: