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

update software to better handle and cleanup non-UTF8 characters #2

Open
jordanpadams opened this issue Mar 14, 2020 · 1 comment
Open

Comments

@jordanpadams
Copy link
Member

Archive.zip

% generate -version

Generate Tool
Version 0.18.2
Release Date: 2019-10-29 18:09:03

Copyright 2012-2017, by the California Institute of Technology.
ALL RIGHTS RESERVED. United States Government Sponsorship acknowledged.
Any commercial use must be negotiated with the Office of Technology Transfer
at the California Institute of Technology.

This software is subject to U. S. export control laws and regulations
(22 C.F.R. 120-130 and 15 C.F.R. 730-774). To the extent that the software
is subject to U.S. export control laws and regulations, the recipient has
the responsibility to obtain export licenses or other export authority as
may be required before exporting such information to foreign countries or
providing access to foreign nationals.

% generate -p genImgJNC.LBL -t genImgJNC.vm
[Fatal Error] :1:1: Content is not allowed in prolog.

Error applying XSLT to output XML. Verify label and template are correctly formatted.
Content is not allowed in prolog.
Outputting without formatting.

% head -1 genImgJNC.xml

%

@jordanpadams jordanpadams added the bug Something isn't working label Mar 14, 2020
@jordanpadams
Copy link
Member Author

@rchenatjpl copied this issue over from the internal repo, and did a quick look into this. apparently, the .vm you are using has some funky non-UTF8 characters in it that I have no idea how they got int there.

if you run dos2unix on the file first, it cleans those out. in the meantime I will keep this ticket around as a note we need to better handle non-UTF8 characters

@jordanpadams jordanpadams changed the title weird characters at head of output .xml update software to better handle and cleanup non-UTF8 characters Mar 14, 2020
@jordanpadams jordanpadams added s.low and removed low labels Mar 18, 2021
@github-project-automation github-project-automation bot moved this to Release Backlog in EN Portfolio Backlog Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ToDo
Development

No branches or pull requests

3 participants