adamsalter (Adam Salter)
- Login: adamsalter
- Email: adam.q.salter@gmail.com
- Registered on: 07/22/2009
- Last sign in: 10/19/2009
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.
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 ... -
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...
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...