gdamore / encoding Goto Github PK
View Code? Open in Web Editor NEWVarious character map encodings missing from golang.org/x/net/encoding
License: Apache License 2.0
Various character map encodings missing from golang.org/x/net/encoding
License: Apache License 2.0
The NewDecoder and NewEncoder APIs changed in golang's x/text/encoding package. They now return pointers to new structures, *encoding.Decoder and *encoding.Encoder, each of which have only a named transform.Transformer member.
I have no idea why they made these changes, but the API breaks encoding and all consumers catastrophically.
Shame on the golang folks for breaking this API.
http://goreportcard.com/report/gdamore/encoding found a bunch of issues.
The names for the ISO88859_1 and ISO8859_5 variables cannot change, but the other issues can be resolved.
When Im trying to enc.EBCDIC.NewDecoder().String(string(rec2))
I get
The square boxes should be spaces. Here is the desired output.
Even when I copy the boxes into a text editor they get translated to spaces. I cant do string parsing on such characters. It would be amazing if you could guide me into the right direction.
Update: The byte array I'm receiving:
[0 0 0 198 195 240 240 240 240 240 241 195 228 214 214 0 0 0 0 0 0 0 0 241 243 249 246 240 249 242 247 241 240 244 246 245 242 240]
The boxes are these zeroes...
Thanks for the amazing package.
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.