You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exception in thread "main" java.nio.file.InvalidPathException: Malformed input or input contains unmappable characters: ?????.txt
at java.base/sun.nio.fs.UnixPath.encode(UnixPath.java:121)
at java.base/sun.nio.fs.UnixPath.<init>(UnixPath.java:68)
at java.base/sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:279)
at java.base/java.nio.file.Path.of(Path.java:147)
at GraalVMAccentedTest.main(GraalVMAccentedTest.java:5)
@fernando-valdez Thanks :) Just updated the description (more details section) after trying different images, turns out it works with ol7 based images.
Describe the issue
Accented characters issue when using Path.of(...)
Steps to reproduce the issue
javac GraalVMAccentedTest.java java GraalVMAccentedTest # Outputs: "Could instantiate file àéïôù.txt"
docker run --name graalvm-accented-test -it "ghcr.io/graalvm/graalvm-ce:ol9-java17" /bin/bash
# Fails without -encoding utf8 javac -encoding utf8 GraalVMAccentedTest.java java GraalVMAccentedTest
Describe GraalVM and your environment:
More details
I tried with different bases (ol7, ol8), turns out ol7 works. And doesn't need the "-encoding utf-8" when compiling:
The text was updated successfully, but these errors were encountered: