Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to print UTF-8
#5
it depends on which file descriptor you write to. the process inherits file descriptors 0,1,2 from the shell that starts it. in the POSIX/Unix/Linux world, 0 is stdin, 1 is stdout, 2 is stderr. as i understand it, where Windows implements these functions it does it the same way. if you open "/dev/tty", you get a new file descriptor (3 or higher). open it for output and write to it and the output goes to the emulated terminal.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
how to print UTF-8 - by Skaperen - Aug-16-2018, 04:51 AM
RE: how to print UTF-8 - by Axel_Erfurt - Aug-16-2018, 09:34 AM
RE: how to print UTF-8 - by Skaperen - Aug-17-2018, 02:43 AM
RE: how to print UTF-8 - by Axel_Erfurt - Aug-17-2018, 06:51 AM
RE: how to print UTF-8 - by Skaperen - Aug-17-2018, 10:37 PM
RE: how to print UTF-8 - by Larz60+ - Aug-18-2018, 01:09 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020