Skip to content

unable to set encoding for idlj generated files #125

Description

@ana-oleski

Hi,

we're using the idlj compiler version 4.2.4 obtained via maven from https://mvnrepository.com/artifact/org.glassfish.corba/idlj/4.2.4

Our project is using UTF-8 as encoding but there is no possibility that I can find to persuade the compiler to generate the files in a given encoding.

The generated javadoc looks like this

  • Generated by the IDL-to-Java compiler (portable), version "4.1"
  • from idl/wapi.idl
  • Dienstag, 31. August 2021 um 12:30:22 Mitteleurop�ische Sommerzeit

for every one of about 100 generated files and leads promptly to compile errors. This is due to the fact that it uses the platform encoding of windows-1252
I've tried -Dfile.encoding=UTF8 to no avail

This has always been a problem but it used to happen only when one executed the program in march (März in German).
Since moving to java 11 and idlj 4.2.* it produces this "middle european time" text, which makes it worse, because the encoding is always wrong.

Ideally, we should be able to provide an encoding as a parameter. If this is not possible, please remove the time text.

Besta regards,,
Ana

P.S. I don't know why the comment mentions version "4.1". I'm definitely using idlj-4.2.4.jar

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions