Project

General

Profile

Actions

Bug #6675

closed

Raise exception when convert encoding of a character from GBK to UTF

Added by mghomn (Justin Peal) over 12 years ago. Updated about 12 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]
Backport:
[ruby-core:45983]

Description

#!/usr/bin/env ruby -w

encoding: utf-8

require 'test/unit'

class Tests < Test::Unit::TestCase
def test_gbk
assert_raise Encoding::UndefinedConversionError do
"\ue863".encode('gbk').encode('utf-8')
end
end
end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0