Project

General

Profile

Actions

Bug #2313

closed

Incomplete encoding conversion?

Added by adamsalter (Adam Salter) about 15 years ago. Updated over 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]
Backport:
[ruby-core:26429]

Description

=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/local/bin/irb:12:in '

Is this a bug?

ASCII-8BIT is (as far as I understand it) essentially binary, so you should be able to convert any string to ASCII-8BIT.
=end


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #2411: String#encode fails but eval("#coding:") worksRejected11/29/2009Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0