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:
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:
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 T.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.