conradirwin / encoding-codepage Goto Github PK
View Code? Open in Web Editor NEWA rubygem that lets you look up encodings by Microsoft® Code Page Identifier
License: MIT License
A rubygem that lets you look up encodings by Microsoft® Code Page Identifier
License: MIT License
Microsoft code page 932 (MS932) is an alias for the code page windows-31j, not Shift-JIS (in the same sense that MS1252 is windows-1252 and not ISO-8859-1.)
Although, the mis-mapping of 932 to Shift_JIS is a very common misunderstanding.
I haven't checked any of the other mappings but I would question 936 and 949 as well because they're both mapped to standard encodings, and Microsoft rarely implemented anything in a standard fashion. 🗡
It appears that this does not want to load on ruby 2.3.3 running on windows
C:\Users\ALilland\Documents\macros\experiments\core_scripts\scheduler>rake receiving_log:run --trace
rake aborted!
NoMethodError: undefined method `dummy?' for nil:NilClass
C:/Ruby23/lib/ruby/gems/2.3.0/gems/encoding-codepage-0.6/lib/encoding-codepage.rb:57:in `block in load_codepages!'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/encoding-codepage-0.6/lib/encoding-codepage.rb:51:in `each_line'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/encoding-codepage-0.6/lib/encoding-codepage.rb:51:in `load_codepages!'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/encoding-codepage-0.6/lib/encoding-codepage.rb:97:in `<class:Encoding>'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/encoding-codepage-0.6/lib/encoding-codepage.rb:2:in `<top (required)>'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:81:in `require'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:81:in `block (2 levels) in require'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `each'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:76:in `block in require'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `each'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-2.0.1/lib/bundler/runtime.rb:65:in `require'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/bundler-2.0.1/lib/bundler.rb:114:in `require'
C:/Users/ALilland/Documents/macros/experiments/core_scripts/scheduler/Rakefile:12:in `<top (required)>'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rake-12.3.2/lib/rake/rake_module.rb:29:in `load'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rake-12.3.2/lib/rake/rake_module.rb:29:in `load_rakefile'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:703:in `raw_load_rakefile'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:104:in `block in load_rakefile'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:186:in `standard_exception_handling'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:103:in `load_rakefile'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:82:in `block in run'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:186:in `standard_exception_handling'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rake-12.3.2/lib/rake/application.rb:80:in `run'
C:/Ruby23/lib/ruby/gems/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
C:/Ruby23/bin/rake:22:in `load'
C:/Ruby23/bin/rake:22:in `<main>'
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.