Re: [Phix] ? operator; string behavior
- Posted by _tom (admin) Nov 06, 2017
- 1274 views
Testing Phix and WEE.
Irv's patch now makes WEE work in utf8: WEE, puts, terminal, office, and internet now all work in utf8.
Pete's Phix patch makes ? operator behave.
Phix ? operator
- ? string of plain-text characters is output as text
- ? string of utf8 characters is output as numbers
? "hello" -- PLAIN TEXT --> "hello" ? "ΕίČ░☼□" -- UTF8 TEXT -->{195,133,195,159,196,140,226,150,145,226,152,188,226,150,161}
- puts will output utf8 text
puts(1,"ΕίČ░☼□") --> ΕίČ░☼□
- ? will output plain-text in its literal form
- puts outputs text; control characters are active
-- literal (control characters not active) ? "--- \n ---" /* "--- \n" ---" */ -- control characters active puts(1, "--- \n ---" ) /* --- --- */
I now have WEE able to output utf8 to a terminal.
The Phix ? operator does not output utf8 text to a terminal.
Should the ? operator output utf8 strings?
_tom