haxe icon indicating copy to clipboard operation
haxe copied to clipboard

Invalid String Exception when inputting non-english text in interp mode (Sys.stdin().readLine)

Open ShaharMS opened this issue 1 year ago • 0 comments

I tried making a tool that shortens some repetative code writing using a series of inputs. On of them requires hebrew text. right after i "submit" the hebrew text, i get the error:

Uncaught exception Invalid string
C:\HaxeToolkit\haxe\std/haxe/io/Input.hx:183: characters 8-33 : Called from here

Reproducing this is as simple as using the text "ביג מק" with this code:

var i = Sys.stdin().readLine();
trace(i);

ShaharMS avatar Jul 27 '24 11:07 ShaharMS