Actions
Bug #5949
closedAdd documentation introduction for the Encoding class
Description
Add documentation introduction for the Encoding class
Files
Actions
Like0
Like0Like0Like0Like0Like0
Added by Florent2 (Florent Guilleux) about 13 years ago. Updated about 13 years ago.
Description
Add documentation introduction for the Encoding class
Files
0001-encoding.c-add-documentation-introduction.patch (5.84 KB) 0001-encoding.c-add-documentation-introduction.patch | Florent2 (Florent Guilleux), 01/31/2012 12:15 AM |
Really nice documentation, thank you for writing this!
Impressive, thanks!
I think you have a typo on line 1698 ; if it's supposed to be a ruby code example, the Encoding:ISO-8859-1 needs two double colons "::".
I was reading a few times through the external/internal encoding chapters, but I wish I'd really see an example making actual usage of an IO object; I think it would help tremendously to grasp the concept and apply it to real code.
Thank you
This issue was solved with changeset r34608.
Florent, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
Florent, I altered your original submission to recommend against Encoding.default_external= and Encoding.default_internal= as they cause issues with inconsistent encodings (see the individual method documentation). Also, please trim trailing whitespace.
I also fixed the typo and added the IO example requested by Markus
Thanks for your feedback and Eric for improving my submission! I've just seen your tweet Eric, sorry I had missed all the ticket updates, when I created the ticket I had not noticed that I was not watching it by default.