Adding characters to output of text-string
Posted: Thursday 14 April 2022 18:03
Translating the contents of the KNMI Weather-info for an application, (amongst others) I use following lua-script-line for generation of output
A typical result today from that lua-script-line is
However, the application reading this textstring requires to see
Simple question, but causing headache:
how to get those enclosing " into the string?
Have looked at lua.org, but not yet seen a suitable answer
In other words:
need to find a way to insert ASCII-character hex022 into the text-string coming from that lua-script-line.
Code: Select all
file:write("$forecast = " .. summary1 .. ";\n") --forecastCode: Select all
$forecast = Zonnige perioden;Code: Select all
$forecast = "Zonnige perioden";how to get those enclosing " into the string?
Have looked at lua.org, but not yet seen a suitable answer
In other words:
need to find a way to insert ASCII-character hex022 into the text-string coming from that lua-script-line.