Giter VIP home page Giter VIP logo

Comments (8)

derTobsch avatar derTobsch commented on June 20, 2024

Hey @HoffmannTom,
thanks for your issue. I tried to recreate this here https://github.com/focus-shift/jollyday/runs/6684578321?check_suite_focus=true based in windows and java 17. I cannot see any of these errors. Could you take a look at it? Maybe something differs.

from jollyday.

HoffmannTom avatar HoffmannTom commented on June 20, 2024

hm... I updated to the same java version and also used git clone instead of downloading the zip file.
It looks like there are different default charactersets used on github.
Maybe it would be better to specify the charset of the source files via the parameter "-encoding" and thus being independent of the platform default.
javadoc
I also see that the default charset differs by OS and OS language:
https://stackoverflow.com/questions/9312816/platforms-default-charset-on-different-platforms
On my system, UTF-8 seems to be the default but the java files are ANSI encoded.

from jollyday.

HoffmannTom avatar HoffmannTom commented on June 20, 2024

Btw... the same problem occurs at compiling the java sources:

[INFO] --- maven-compiler-plugin:3.10.1:compile (default-compile) @ jollyday-jaxb ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 44 source files to E:\EBS\jollyday\jollyday-jaxb\target\classes
[ERROR] /E:/EBS/jollyday/jollyday-jaxb/target/generated-sources/jaxb/de/focus_shift/jaxb/mapping/EthiopianOrthodoxHoliday.java:[4,4] unmappable character (0xC4) for encoding UTF-8
[ERROR] /E:/EBS/jollyday/jollyday-jaxb/target/generated-sources/jaxb/de/focus_shift/jaxb/mapping/EthiopianOrthodoxHoliday.java:[18,20] unmappable character (0xFC) for encoding UTF-8

Using the -encoding parameter would also help to get platform independent:
https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javac.html
Thanks in advance!

from jollyday.

HoffmannTom avatar HoffmannTom commented on June 20, 2024

Hello @derTobsch
short update:
I changed the pom.xml with:
<project.build.sourceEncoding>Cp1252</project.build.sourceEncoding>
It compiles successfully after this change.

Currently there is UTF-8 configured.
When I clone the project, the Umlauts are ANSI encoded (single-byte) but UTF-8 is multibyte.
Could you check, whether your sources are UTF-8 or ANSI encoded?
Somehow there is currently a mismatch when I clone the repo.

Thanks!

from jollyday.

derTobsch avatar derTobsch commented on June 20, 2024

Intellij says that everything is UTF-8 encoded. By builds are fine. This is also the preferred way to configure it, see https://maven.apache.org/plugins/maven-resources-plugin/examples/encoding.html. Need some time to look at it. Maybe you can take a look at your IDE? Maybe there is something wrong? Or do you build it on a shell?

@HoffmannTom can you check your git encoding? Maybe there is something configured.

I also provided two branches. Please clone the repo for each branch again and try to build #112 and #111

from jollyday.

HoffmannTom avatar HoffmannTom commented on June 20, 2024

Hello @derTobsch ,
I just saw that all files with encoding issues are in the subfolders of "jollyday-jaxb/target/generated-sources/"
So the generation of these files seems to happen with the wrong encoding in my case.
Any option to configure the encoding to utf-8 ?

from jollyday.

HoffmannTom avatar HoffmannTom commented on June 20, 2024

I think I got it
I changed the pom.xml within the jaxb folder:

              <jvmArguments>
                <jvmArgument>-Xms32m</jvmArgument>
		<jvmArgument>-Dfile.encoding=UTF-8</jvmArgument>
              </jvmArguments>

This worked for me.

from jollyday.

derTobsch avatar derTobsch commented on June 20, 2024

I think I got it I changed the pom.xml within the jaxb folder:

              <jvmArguments>
                <jvmArgument>-Xms32m</jvmArgument>
		<jvmArgument>-Dfile.encoding=UTF-8</jvmArgument>
              </jvmArguments>

This worked for me.

That sounds good. If you want to provide a pr, please feel welcome to provide one. I would be happy to see the first pr from another person ☺️

from jollyday.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.