From: Dave Thomas Date: 2008-03-19T12:43:37+09:00 Subject: Two questions on Encoding#dummy --Apple-Mail-1--42240316 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit First, is this description about right? > A dummy encoding is used as the basis for other encodings, but > should not itself be used to encoding strings. > Second, should this happen? irb(main):012:0> Encoding::CP51932.dummy? TypeError: can't convert Encoding into String from (irb):12:in `dummy?' from (irb):12 from /usr/local/rubybook/bin/irb:12:in `
' Cheers Dave --Apple-Mail-1--42240316 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable First, is this description = about right?

      A dummy encoding is used as = the basis for other encodings, but
     =  should not itself be used to encoding = strings.


Secon= d, should this happen?

irb(main):012:0> = Encoding::CP51932.dummy?
TypeError: can't convert Encoding = into String
from (irb):12:in = `dummy?'
from (irb):12
from = /usr/local/rubybook/bin/irb:12:in `<main>'


Cheers


Dave
= --Apple-Mail-1--42240316--