General

Profile

adamsalter (Adam Salter)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

11/01/2009

10:35 AM Ruby Bug #2313: Incomplete encoding conversion?
OK I understand now :) I was mixing up the available encoding converters... There is no `Encoding::Converter` from UTF-8 to ASCII-8BIT (or visa versa ;).
Thank you for your patience.
adamsalter (Adam Salter)

10/31/2009

04:45 PM Ruby Bug #2313: Incomplete encoding conversion?
OK. Thank you.
I do think it makes sense to be able to do:
~~~ruby
>> "元気".encode('UTF-8').encode('ASCII-8BIT').encode('UTF-8')
~~~
.. even though it doesn't actually change the string bytes internally. But, I guess it's only ...
adamsalter (Adam Salter)
06:21 AM Ruby Bug #2313: Incomplete encoding conversion?
Ok. I'm still a little unclear.
The Ruby 1.9 docs say `String#encode` "returns a copy of str transcoded to encoding 'encoding'".
From James Edward Grey article on strings `String#force_encoding` 'doesn't change the data at all, jus...
adamsalter (Adam Salter)

10/30/2009

02:12 PM Ruby Bug #2313 (Rejected): Incomplete encoding conversion?
=begin
I get the following error in irb:

>> "http://localhost/posts/eeé".encode('ASCII-8BIT')
Encoding::UndefinedConversionError: "\xC3\xA9" from UTF-8 to ASCII-8BIT
from (irb):7:in `encode'
from (irb):7
from /opt/loc...
adamsalter (Adam Salter)

Also available in: Atom