Create your own encoding

How can I create my own encoding in Ruby (1.9)? The encoding will consist in converting the line when reading / writing from / for the file, that is, as a rule, for managing data in non-standard encoded lines ( http://en.wikipedia.org/wiki/Mazovia_encoding )

0
source share
2 answers

To your updated question: at the moment, all you can do is write some kind of user code that processes reading / writing files at the byte level and does the necessary conversions.


If you are referring to how you can use different ruby ​​character encodings with version 1.9, I point you to

Ruby 1.9

M17n

+1

ruby-docs , Encoding ( Encoding.find() IConv ). afaik Mazovia IConv, ...

+1

All Articles