Part of Database drivers: the hub. 10 entries under this heading; every entry opens as its own topic.
- An imported text file has an extra 00h after every character - the file is Unicode, two bytes per character; read it with the DOS driver and convert.
- Is it legal to point a text file at a UNC path with an IP address instead of a server name? - yes; test the path in Explorer first.
- Record retrieval error when a browse over a CSV file scrolls up - a CSV file cannot be read backwards; load it into a queue ("File Loaded").
- BASIC driver file can only be read once per run of the procedure - close the file before changing PROP:Name, then OPEN and loop with an ERRORCODE() check.
- Writing a text file with UTF-8 encoding using the ASCII driver - the driver does not encode; convert the text with ToUTF8() or StringTheory.
- Accented characters from a CSV read with the BASIC driver come out garbled - UTF-8 read as single bytes; convert to ANSI after the read.
- Which BASIC driver settings read a semicolon-delimited CSV file? - field delimiter 3Bh, record delimiter 0Dh,0Ah, file in ANSI.
- ASCII driver output for one user has no line breaks and trimmed lines - look in a hex view; an embedded CR in the data was the cause.
- A very large ASCII file (8.75 GB, 59 million records): the ASCII and DOS drivers stop at 4,294,967,295 bytes - bulk load it - The ASCII and DOS drivers stop near 4 GB; bulk load the file with the database vendor's tool, split it into 2 GB pieces, or read it through the Windows API.
- Importing a semicolon CSV file into the dictionary gives one big field - set "Comma" to 59 and clear "Field Delimiter" - In the dictionary import dialog set Comma to 59 and clear the Field Delimiter so a semicolon CSV file splits into its six fields.