From: Nobuyoshi Nakada Date: 2008-12-07T18:20:32+09:00 Subject: [ruby-core:20403] Re: Iconv.charset_map() Hi, At Sun, 7 Dec 2008 13:32:04 +0900, James Gray wrote in [ruby-core:20402]: > What is Iconv.charset_map() suppose to do? See ext/iconv/charset_alias.rb. It's suppose to provide standard charset names. > It doesn't seem to do much for me: > > $ ruby -r iconv -ve 'p Iconv.charset_map' > ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-darwin9.4.0] > {} That iconv has all names already. > I was looking for a way to list the available encodings through the > Ruby extension. Is that possible? `iconv -l' would show them if the optionn is available. Also Iconv.list exists in 1.9, and might work. -- Nobu Nakada