UTF-8 allows for the proper display of a number of special characters, and is also essential for multilingual characters.
We recommend using UTF-8 output for all of your websites, including LiveCode-powered websites.
To display UTF-8 output using LiveCode Server, simply insert a
put header line at the very top of your
.lc file that appends the charset of UTF-8 to the
Content-Type HTTP header.
Here’s an example of how this works:
<?lc put header "Content-Type: text/html; charset=UTF-8" ?>
put "<p>Powered by LiveCode" && the version & "</p>"
This simple method allows you to include multilingual characters as-is in both the HTML and LiveCode-parsed portions of the file.
Remember to save your
.lc file in UTF-8 format. Most modern text editors support this format, often by default. Also be sure to save it in Unix format (as the servers run Unix), not Windows or Mac.
Should you run into any issues or require further assistance, feel free to open a Client Care ticket via the Client Lounge, and we would be happy to assist.