Comments (3)
Here's a patch which seems to work for me:
diff --git a/pymarc/marc8.py b/pymarc/marc8.py index 91dffab..b588c66 100644 --- a/pymarc/marc8.py +++ b/pymarc/marc8.py @@ -78,6 +78,15 @@ class MARC8ToUnicode: self.g1 = ord(marc8_string[pos+2]) pos = pos + 3 continue + else: + charset = ord(next) + if charset in marc8_mapping.CODESETS: + self.g0 = charset + pos += 2 + elif charset == 0x73: + self.g0 = self.basic_latin + pos += 2 + def is_multibyte(charset): return charset == 0x31
from pymarc.
Works for me. Thanks.
from pymarc.
now on pypi as v2.8.2
from pymarc.
Related Issues (20)
- Add encoding option to marcxml.record_to_xml HOT 4
- field .indicators, indicator1, indicator2 confusion HOT 3
- Make leader mutable? HOT 14
- A permissive MARCReader HOT 4
- MARCReader obscure warning: couldn't find 0xa0 in g0=66 g1=69 HOT 11
- YAZ - collecting data and printing them with PYMARC HOT 1
- Convert README to PyPI description? HOT 3
- How to analyze the bad.dat HOT 1
- New release to PyPI to make Python 3 support official? HOT 2
- Corrupt / Incompatible data: couldn't find 0x20 in g0=83 g1=69 HOT 1
- Add subfields at an arbitrary position HOT 2
- Document use of MARCXML with an example HOT 5
- Correct the readme to avoid new errors HOT 1
- License HOT 8
- Tests fail on python 3.8
- v4.0.0? HOT 25
- Linting
- Python3 HOT 4
- License HOT 1
- Organization account? HOT 7
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 pymarc.