ctrl-alt-dev / tps-parse Goto Github PK
View Code? Open in Web Editor NEWParses Clarion TPS files. Also converts to CSV.
Parses Clarion TPS files. Also converts to CSV.
I get an error when I try to convert some .tps files to .csv
The error is String index out of range: -1 or String index out of range: -2
This files are producing error:
https://app.box.com/s/dhj9fb7ql889yiq7x559
This file is working fine:
https://app.box.com/s/xk9eoc6fzpa3s5f63whs
Any help will be appreciated
Hi, I have the encrypted error. I have set the password, but not sure that is the good password. Not all file are encrypted.
java -jar tps-to-csv.jar -s ./240529data -t ./240529data_csv -e -password "_&$#"
Encrypted file, using set password.
Exception in thread "main" nl.cad.tpsparse.tps.NotATopSpeedFileException: File doesn't start with 0x00000000 - its not a TopSpeed file or it may be 'encrypted'.
at nl.cad.tpsparse.tps.TpsHeader.<init>(TpsHeader.java:50)
at nl.cad.tpsparse.tps.TpsFile.getHeader(TpsFile.java:191)
at nl.cad.tpsparse.tps.TpsFile.<init>(TpsFile.java:155)
at nl.cad.tpsparse.tps.TpsFile.<init>(TpsFile.java:116)
at nl.cad.tpsparse.Main.openFile(Main.java:298)
at nl.cad.tpsparse.Main.parseFile(Main.java:166)
at nl.cad.tpsparse.Main.main(Main.java:132)
Array index out of range: 1065634308 how can I increase the array index when the file to be extracted is very big
the index field ids are not dereferenced when looking up the column names
fix in #7
Hi, sometimes the table is marked like OEM, so the data is saved in CP850 format. Perharps adding a new parameters like -oem the functions related to read string can switch from ISO-8859-1 to CP850.
Ex:
public String fixedLengthString(int len) {
String str = new String(data, ofs, len, Charset.forName("cp850"));
ofs += len;
return str;
}
Thanks in advance
Guillermo
The link for binary file links to old version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.