How to print utf8 text "Klöße" out to console ?
Posted: Sun Dec 30, 2012 8:25 pm
				
				How to do this in a way, which will be working on all supported operating systems?
			http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
CompilerIf (#PB_Compiler_Unicode = 1)
 OpenConsole()
 Print("Klöße")
 Input()
 CloseConsole()
CompilerElse 
 CompilerError "Enable Unicode"
CompilerEndIf
Code: Select all
OpenConsole()
text$ = "Klöße"
CharToOem_(@text$, @text$)
Print(text$)
Input()