Comments (9)
/cc @dmlloyd (logging)
from quarkus.
I can't reproduce this with Greek characters
from quarkus.
Maybe it only happens with Latin characters.
Reproducer: https://github.com/Willian199/quarkus_log_chars
from quarkus.
That one works fine for me as well
from quarkus.
By "special" characters I assume you mean "non-ASCII" (aka Unicode code points whose value is greater than 127), which are only "special" outside of the USA (the "A" in "ASCII" stands for "American"). The problems you are having likely indicate that your system's default character encoding does not match what Java is expecting for whatever reason.
You did not indicate anything about your system environment (uname -a
or ver
along with java -version
at least is needed) so that's all I can say for certain. You also did not indicate where you are seeing this issue: is it on the console, or in a file, or somewhere else?
What changed in Quarkus 3.6.5 is that the console charset is now detected more actively, and if no charset is given, we are falling back to the system default charset (which normally defaults to UTF-8 if all else fails). So I'm guessing that your problem is occurring on the console, in which case setting quarkus.log.file.encoding
will do nothing, since that applies only to file logging. But, you should specify, otherwise I'm just guessing.
from quarkus.
I'm using Windows 11 22H2 and this happens in console. If I do System.out.println("àáéíóúç");
works as I expect
ver
Microsoft Windows [versão 10.0.22621.3007]
Java -version
java version "21" 2023-09-19
Java(TM) SE Runtime Environment Oracle GraalVM 21+35.1 (build 21+35-jvmci-23.1-b15)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 21+35.1 (build 21+35-jvmci-23.1-b15, mixed mode, sharing)
from quarkus.
The Charset.defaultCharset()
returns UTF-8.
But the StreamEncoder use IBM850.
Here is the last place where I found the correct value.
from quarkus.
Well, following this tutorial solved the problem.
https://itsontreinamentos.com/2022/05/05/how-to-change-character-encoding-windows-11/
from quarkus.
To add more information: System.out
does not use the console encoding, which is determined by java.io.Console
separately (see Console.charset()
for more information). The log manager uses this console encoding for console logging.
from quarkus.
Related Issues (20)
- OidcProvider throws NPE when certificate chain is configured with OIDC server which has no JWK keys at the startup HOT 1
- Build Card Page for Dev UI results in NPE in ArtifactInfoUtil HOT 10
- ARJUNA012095: Abort of action id <ID> invoked while multiple threads active within it. HOT 2
- allow fetching of lazy relations outside of its original transaction HOT 12
- Customize Vert.x builder to update the Vert.x Cluster manager configuration HOT 1
- `ImageMetricsITCase.verifyImageMetrics` failures in `main` HOT 15
- quarkus-quartz: CDIAwareJob destroys instance of Quartz Job too early when Job is a @Dependent bean HOT 4
- try it out in swagger configuration option HOT 5
- Agroal Data Source Health check failing for reactive data source HOT 5
- Offer a way to block inside custom `SecurityContext.isUserInRole` with resteasy-reactive HOT 15
- Hibernate Reactive can't persist a many-to-many relation when one of the entities is a child (with the "joined" inheritance type) and the batch size is greater than 1 HOT 10
- Postgresql bump causing detection of instance Random/SplittableRandom HOT 11
- jpamodelgen fails with range out of bounds HOT 9
- Properly pass errors from JsonRPC backends to Dev UI HOT 2
- Unable to build a container with Jib when podman is running HOT 7
- Exception thrown when stopping devmode and with dev services running with Podman HOT 1
- Quarkus opentelemetry extension WARNING when exporting to dynatrace HOT 11
- GRPC server doesn't respond when running on the same server as HTTP and using TLS HOT 6
- Add @PermissionsAllowed to Panache Resources HOT 9
- Native: Introduce flag to favor build time improvements at the cost of using more resources and vice versa HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quarkus.