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

EIDSInputWedge and utf8 files on windows #43

Open
jmfee-usgs opened this issue Jul 21, 2016 · 1 comment
Open

EIDSInputWedge and utf8 files on windows #43

jmfee-usgs opened this issue Jul 21, 2016 · 1 comment

Comments

@jmfee-usgs
Copy link
Contributor

Files with UTF8 characters on windows sometimes generate this exception:

javax.xml.bind.UnmarshalException
 - with linked exception:
[java.io.UTFDataFormatException: Invalid byte 2 of 2-byte UTF-8 sequence.]

A temporary solution is to include the following argument in the java command:

java -Dfile.encoding=utf-8 -jar ProductClient.jar ...
@jmfee-usgs
Copy link
Contributor Author

This is likely an exception from the eqmessageutils project. One option is to set the encoding using an InputStreamReader interface wrapped around the input stream:
https://github.com/usgs/eqmessageutils/blob/master/src/gov/usgs/earthquake/quakeml/Quakeml_1_2_Parser.java#L128

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

1 participant