println AndroidStudio Unicode UTF-8 characters incorrect
I’m having a problem with the println command. It’s not displaying Unicode UTF-8 characters correctly
I’ve done a lot of research, and set everything related to UTF-8 encoding that I can do.
Everything I’ve tried:
- File – Setting – File Encoding (Everything set to UTF-8)
- VMOptions add the code: -Dfile.encoding=UTF-8
- In ProjectFolder (I edited build.gradle.kts to compileOptions and passed the encode = "UTF-8" parameter)
- And many other ways that I found on StackOverFlow but also failed.
And of course all failed.
The problem here is that I don’t understand what the Android Studio Console screen is, I only see on the interface a word RUN. (This is very different from VisualStudio Code or some other IDEs I’ve used, when I open Terminal it might show me it’s PowerShell or something and it fully supports Unicode UTF-8..)
I saw someone get the println command working correctly displaying Unicode-UTF8 characters in an Android Studio 2023 version.
link to the screenshot where I ran the println code (If the link still exists): ImageBB Image Error UTF-8 Code Running
Have you ever gotten the println command to work with UTF-8 please show me and everyone?
I’m currently using the version: Android Studio Ladybug | 2024.2.1 Patch 1, Build #AI-242.23339.11.2421.12483815, built on October 11, 2024, Runtime version: 21.0.3+-12282718-b509.11 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
You need to sign in to view this answers