Project

General

Profile

Actions

Bug #564

closed

Regexp fails on UTF-16 & UTF-32 character encodings

Added by mike (Michael Selig) about 16 years ago. Updated over 13 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-core:18594]

Description

=begin
UTF-16 & UTF-32 (and maybe other non-ascii compatible encodings) don't seem to be work as Regexp patterns.

Regexp.new("abc".encode("UTF-16BE"))
==> EncodingCompatibilityError: incompatible character encodings: US-ASCII and UTF-16BE
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0