From: O01eg Oleg Date: 2010-05-31T01:51:08+09:00 Subject: Re: How to load code converters? Caleb Clausen wrote: > On 5/30/10, O01eg Oleg wrote: >> When I try to encode string in program I got >> Encoding::ConverterNotFoundError error "code converter not found (UTF-8 >> to KOI8-R)" (and other charsets) >> When I run script with encoding in ruby interpreter it work. >> What I have to call for loading converters? > > might be: > require 'enc/koi8_r' Ruby 1.9 Also, it doesn't work and I don't see file for cp866 charset. transcoder table from my program: (gdb)p *transcoder_table $3 = {type = 0x7ffff75632c0, num_bins = 11, entries_packed = 0, num_entries = 1, bins = 0x704170, head = 0x7077b0, tail = 0x7077b0} transcoder table from ruby interpreter: (gdb) p *transcoder_table $2 = {type = 0x7ffff7dc32c0, num_bins = 19, entries_packed = 0, num_entries = 84, bins = 0x73e190, head = 0x6cc600, tail = 0x741150} -- Posted via http://www.ruby-forum.com/.