How to write "Ni Hao" ("Hello") in Chinese to standard output using UTF-8 in Pascal

1 Answer

0 votes
program HelloUnicode;

begin
  // Set output encoding to UTF-8 (works on most modern terminals)
  WriteLn(WideString('你好'));
end.




(*
run:
  
你好

*)

 



answered Aug 14, 2025 by avibootz
...