Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java - file encoding argument #9

Open
gomezpt opened this issue Jun 20, 2023 · 2 comments
Open

Java - file encoding argument #9

gomezpt opened this issue Jun 20, 2023 · 2 comments

Comments

@gomezpt
Copy link

gomezpt commented Jun 20, 2023

Hi,
Can you please set this argument to force the encoding as "Windows-1252" ?

  • -Dfile.encoding=windows-1252

This is to avoid errors like:

org.xml.sax.SAXParseException; lineNumber: 14898; columnNumber: 55; Linha: 14898; coluna: 55; An invalid XML character (Unicode: 0x5) was found in the element content of the document.
	at wU.fatalError(Unknown Source)
@froque
Copy link
Owner

froque commented Jun 21, 2023

How can I replicate this ?

Can you share a small file to replicate it ?

Does it happend with the main FACTEMICLI-2.6.2-46755-cmdClient.jar ?

You can already use that property by using something like export JAVA_TOOL_OPTIONS="-Dfile.encoding=windows-1252" or updating the file saft-sender.cfg

@gomezpt
Copy link
Author

gomezpt commented Jul 5, 2023

Hello,
I will try to provide you a sample file.
It happens with 2.6.2 an 2.7.0. Tried to include that property in saft-sender.cfg but without success.
It executes fine if I call the JAR directly but not trough saft-sender.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants