Project

General

Profile

Actions

Bug #20719

closed

`Float` converts ASCII-incompatible string

Added by nobu (Nobuyoshi Nakada) 3 months ago. Updated 17 days ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:119095]

Description

"\u{3036}" #=> "〶"
Float("\u{3036}".encode("utf-16be")) #=> 6.0

While:

Integer("\u{3036}".encode("utf-16be")) #=> ASCII incompatible encoding: UTF-16BE (Encoding::CompatibilityError)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0