utf-8 |
/abc/ |
US-ASCII |
US-ASCII |
(regexp (str "abc") (regopt)) |
utf-8 |
/abc/u |
UTF-8 |
US-ASCII |
(regexp (str "abc") (regopt :u)) |
utf-8 |
/abc/n |
US-ASCII |
US-ASCII |
(regexp (str "abc") (regopt :n)) |
utf-8 |
/À/ |
UTF-8 |
UTF-8 |
(regexp (str "À") (regopt)) |
utf-8 |
/À/u |
UTF-8 |
UTF-8 |
(regexp (str "À") (regopt :u)) |
utf-8 |
/À/n |
sample.rb:2: regexp encoding option 'n' differs from source encoding 'UTF-8' |
U+00C0 from UTF-8 to ASCII-8BIT |
(regexp (str "À") (regopt :n)) |
utf-8 |
/д/ |
UTF-8 |
UTF-8 |
(regexp (str "д") (regopt)) |
utf-8 |
/д/u |
UTF-8 |
UTF-8 |
(regexp (str "д") (regopt :u)) |
utf-8 |
/д/n |
sample.rb:2: regexp encoding option 'n' differs from source encoding 'UTF-8' |
U+0434 from UTF-8 to ASCII-8BIT |
(regexp (str "д") (regopt :n)) |
utf-8 |
/\xff/ |
sample.rb:2: invalid multibyte escape: /\xff/ |
invalid multibyte escape: /\xff/ |
(regexp (str "\\xff") (regopt)) |
utf-8 |
/\xff/u |
sample.rb:2: invalid multibyte escape: /\xff/ |
invalid multibyte escape: /\xff/ |
(regexp (str "\\xff") (regopt :u)) |
utf-8 |
/\xff/n |
ASCII-8BIT |
ASCII-8BIT |
(regexp (str "\\xff") (regopt :n)) |
us-ascii |
/abc/ |
US-ASCII |
US-ASCII |
(regexp (str "abc") (regopt)) |
us-ascii |
/abc/u |
UTF-8 |
US-ASCII |
(regexp (str "abc") (regopt :u)) |
us-ascii |
/abc/n |
US-ASCII |
US-ASCII |
(regexp (str "abc") (regopt :n)) |
us-ascii |
/\xff/ |
ASCII-8BIT |
invalid multibyte escape: /\xff/ |
(regexp (str "\\xff") (regopt)) |
us-ascii |
/\xff/u |
sample.rb:2: invalid multibyte escape: /\xff/ |
invalid multibyte escape: /\xff/ |
(regexp (str "\\xff") (regopt :u)) |
us-ascii |
/\xff/n |
ASCII-8BIT |
ASCII-8BIT |
(regexp (str "\\xff") (regopt :n)) |
ascii-8bit |
/abc/ |
US-ASCII |
US-ASCII |
(regexp (str "abc") (regopt)) |
ascii-8bit |
/abc/u |
UTF-8 |
US-ASCII |
(regexp (str "abc") (regopt :u)) |
ascii-8bit |
/abc/n |
US-ASCII |
US-ASCII |
(regexp (str "abc") (regopt :n)) |
ascii-8bit |
/À/ |
ASCII-8BIT |
ASCII-8BIT |
(regexp (str "\xC3\x80") (regopt)) |
ascii-8bit |
/À/u |
sample.rb:2: regexp encoding option 'u' differs from source encoding 'ASCII-8BIT' |
"\xC3" from ASCII-8BIT to UTF-8 |
(regexp (str "\xC3\x80") (regopt :u)) |
ascii-8bit |
/À/n |
ASCII-8BIT |
ASCII-8BIT |
(regexp (str "\xC3\x80") (regopt :n)) |
ascii-8bit |
/д/ |
ASCII-8BIT |
ASCII-8BIT |
(regexp (str "\xD0\xB4") (regopt)) |
ascii-8bit |
/д/u |
sample.rb:2: regexp encoding option 'u' differs from source encoding 'ASCII-8BIT' |
"\xD0" from ASCII-8BIT to UTF-8 |
(regexp (str "\xD0\xB4") (regopt :u)) |
ascii-8bit |
/д/n |
ASCII-8BIT |
ASCII-8BIT |
(regexp (str "\xD0\xB4") (regopt :n)) |
ascii-8bit |
/\xff/ |
ASCII-8BIT |
ASCII-8BIT |
(regexp (str "\\xff") (regopt)) |
ascii-8bit |
/\xff/u |
sample.rb:2: invalid multibyte escape: /\xff/ |
invalid multibyte escape: /\xff/ |
(regexp (str "\\xff") (regopt :u)) |
ascii-8bit |
/\xff/n |
ASCII-8BIT |
ASCII-8BIT |
(regexp (str "\\xff") (regopt :n)) |
koi8-r |
/abc/ |
US-ASCII |
US-ASCII |
(regexp (str "abc") (regopt)) |
koi8-r |
/abc/u |
UTF-8 |
US-ASCII |
(regexp (str "abc") (regopt :u)) |
koi8-r |
/abc/n |
US-ASCII |
US-ASCII |
(regexp (str "abc") (regopt :n)) |
koi8-r |
/д/ |
KOI8-R |
UTF-8 |
(regexp (str "д") (regopt)) |
koi8-r |
/д/u |
sample.rb:2: regexp encoding option 'u' differs from source encoding 'KOI8-R' |
UTF-8 |
(regexp (str "д") (regopt :u)) |
koi8-r |
/д/n |
sample.rb:2: regexp encoding option 'n' differs from source encoding 'KOI8-R' |
U+0434 from UTF-8 to ASCII-8BIT |
(regexp (str "д") (regopt :n)) |
koi8-r |
/\xff/ |
KOI8-R |
invalid multibyte escape: /\xff/ |
(regexp (str "\\xff") (regopt)) |
koi8-r |
/\xff/u |
sample.rb:2: invalid multibyte escape: /\xff/ |
invalid multibyte escape: /\xff/ |
(regexp (str "\\xff") (regopt :u)) |
koi8-r |
/\xff/n |
ASCII-8BIT |
ASCII-8BIT |
(regexp (str "\\xff") (regopt :n)) |