My Oracle Support Banner

Accented or Extended UTF-8 Characters Cause "java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters" Error (Doc ID 2923600.1)

Last updated on SEPTEMBER 24, 2023

Applies to:

Java SE JDK and JRE - Version 11 and later
Oracle WebLogic Server - Version 14.1.1.0.0 to 14.1.1.0.0 [Release 14c]
Information in this document applies to any platform.

Symptoms

Files.copy() throws java.nio.file.InvalidPathException when path has UTF-8 characters in Java 11 on Solaris (where this was reported against) or Linux.


Before Java 11, it was working fine by using the Java option -Dsun.jnu.encoding args.




Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.