bobt_1234 has asked for the wisdom of the Perl Monks concerning the following question:
But it doesn't work. The output is "00b9". I've tried other things likeopen FO, ">test.txt"; binmode FO, ":utf8"; print FO "\u00b9"
I've tried searching the Internet to no avail. Every page on this topic requires you to read an encyclopedia. All I want is the code to output a unicode literal. Thanks everyone!print FO "\u-00b9"; # Outputs -00b9 print FO "\u{00b9}"; # Outputs {00b9} print FO "\x{00b9}"; # Outputs a strange character (the code for 00b9 +is a superscript 1}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Printing a UTF8 code
by hippo (Archbishop) on Nov 08, 2019 at 13:53 UTC | |
|
Re: Printing a UTF8 code
by haj (Vicar) on Nov 08, 2019 at 13:31 UTC | |
by bobt_1234 (Initiate) on Nov 08, 2019 at 20:43 UTC | |
by ikegami (Patriarch) on Nov 09, 2019 at 00:26 UTC | |
|
Re: Printing a UTF8 code
by haukex (Archbishop) on Nov 08, 2019 at 19:43 UTC | |
|
Re: Printing a UTF8 code
by Anonymous Monk on Nov 09, 2019 at 07:50 UTC |