Project

General

Profile

Actions

Bug #830

closed

Encoding::UndefinedConversionError

Added by rubikitch (rubikitch .) almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
ruby -v:
Backport:
[ruby-dev:37285]

Description

=begin
Encoding::UndefinedConversionErrorのエラーメッセージは
内部のUTF-8ではなくて変換元(この場合EUC-JP)を示したほうがわかりやすいと思います。

-- coding: euc-jp --

"ああ".encode("US-ASCII") rescue $!

=> #<Encoding::UndefinedConversionError: "\xE3\x81\x82" from UTF-8 to US-ASCII>

=end

Actions #1

Updated by duerst (Martin Dürst) almost 16 years ago

  • Category set to M17N
  • Priority changed from Normal to 3
  • Target version set to 2.0.0

=begin
気落ちは良く分かります。
実装は大変難しいです。(特に変換スピードを減らしたくない場合)
1.9.x でできるか、2.0 以降になるか分かりません。
=end

Actions #2

Updated by akr (Akira Tanaka) almost 16 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

=begin
Applied in changeset r21092.
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0