10 lines
292 B
Text
10 lines
292 B
Text
local function supports_unicode()
|
|
local lang = os.getenv("LANG")
|
|
return "UTF-8" in lang or "utf-8" in lang
|
|
end
|
|
|
|
if supports_unicode() then
|
|
print($"Unicode is supported on this terminal and U+25B3 is : {"\u{25B3}"}")
|
|
else
|
|
error("Unicode is not supported on this terminal")
|
|
end
|