Comments (6)
If the data in your dbf is encoded with ISO-8859-1 you can pass an encoding option to DBF::Table when opening the file. ISO-8859-1 corresponds to the standard dBase encoding of cp1252, so I would try that first:
table = DBF::Table.new('dbf/books.dbf', nil, 'cp1252')
If that doesn't work try:
table = DBF::Table.new('dbf/books.dbf', nil, 'ISO-8859-1')
from dbf.
and what if I need Kamenických encoding, please?
from dbf.
cp437 does not work, it produces:
P⌐íli¿ æluƒouçkÿ kûñ úpêl âábelské ódy
from dbf.
fixed by my own convertor from Kamenický char table to utf-8.
from dbf.
Kamenický is actually cp895 isn't it?
from dbf.
yes, but noone of gems works (neither iconv, etc...), so I manually created convert table and it works. You can close this issue, thank you.
from dbf.
Related Issues (20)
- Wrong colum names after upgrading from 4.1.6 to 4.2.0 or later HOT 4
- SyntaxError: /usr/local/bundle/gems/dbf-4.3.1/lib/dbf/schema.rb:40: syntax error, unexpected ')' HOT 2
- Cyrillic UTF-8 columns & data fails with "column name cannot be empty" HOT 5
- Possible mistake in the supported data types documentation HOT 1
- NoMethodError: undefined method `unpack` for nil:NilClass HOT 4
- Date Parsing Issue HOT 3
- Column Name with Capitalize HOT 2
- Invalid date values HOT 2
- working with DBF::Table in parallel processes HOT 1
- Can be installed on ruby < 2.4 HOT 1
- How is the default encoding chosen? HOT 2
- File causes TypeError HOT 4
- dBASE II (version 0x02) support HOT 2
- CLI tool clean exit on EPIPE HOT 2
- Repo issue: rdoc.info link is 404 HOT 1
- column name cannot be empty (DBF::Column::NameError) HOT 1
- Column name cannot be empty (DBF::Column::NameError) HOT 4
- CLI performance HOT 4
- Encoding 69 HOT 1
- no implicit conversion of nil into String
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dbf.