lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 13/01/2021 13:00, Marcus Mason wrote:
> Perhaps I should clarify my intent here. I want lua to print correctly
> on windows, like all the other programming language binaries I use on my
> computer. Chez scheme, various javascript envrionments, clojure, etc
> have no issues printing for me. Why is lua.exe not able to do it?

On Windows: Python doesn't[1], and Perl doesn't (don't use Clojure or
JavaScript)

You need to stop and do some reading.

Ultimately, it a problem with Windows, not Lua. *nix systems properly
support UTF8 on the console, Windows doesn't.


[1] Trying the following:

print(u"Greek: 'Ναί', Japanese: '番号'")

Outputs something that looks like:

Greek: 'Ναί', Japanese: '□□'

But you can copy/paste that into an editor and see the correct text,
it's just the console messing up rendering.