From: Patrick Thomson Date: 2010-05-25T01:59:38+09:00 Subject: Re: Internal string storage and Encoding::Converter#convpath For encodings that can be converted directly (like EUC-JP to SJIS), I understand that no UTF-8 internal storage is required. However, what about encodings that do require an intermediate step? Is the choice of UTF-8 as an intermediate representation an implementation detail? Thanks, -- Patrick Thomson On May 21, 2010, at 6:38 PM, Tanaka Akira wrote: > 2010/5/22 Patrick Thomson : >> >> In #rubyspec we were discussing whether the specifications are correct for Encoding::Converter's convpath method. Since MRI uses UTF-8 internally, the #convpath method shows that it converts to UTF-8 for an intermediate step: > > UTF-8 is not required: > > % ruby -e 'p Encoding::Converter.new("euc-jp", "shift_jis").convpath' > [[#, #]] > -- > Tanaka Akira >