I have a quick-n-dirty tool for generating HTML and posting it, so I can keep a schedule in a web page up to date without mucking about writing HTML directly. In LC I use tabbed text in a field, and I parse/convert this content to a table structure (wrapped in the rest of a basic HTML page), and upload that by FTP. This file is shown in an iFrame in a WordPress page.
This all works absolutely fine – but I can't get my head around how to support characters such as ö and Japanese characters. If I generate the page manually as UTF/8 from BBEdit it works fine, but when I update the remote page using my LC stack like so:
Code: Select all
put field "code" into URL "ftp://NAME:PASSWORD@FULL/FTP/PATH/TO/PAGE.HTML"
the upload works fine, as does the iFrame, but the encoding fails; in a browser I see diamond blocks for the 'special' Western chars and strings of question marks for the Japanese content.
The HTML page code I'm writing starts with this:
Code: Select all
<html>
<head>
<meta charset="utf-8"/>
but this doesn't help with the LC-generated output. Any tips on how should I handle writing out text in a form that doesn't trip up over this kind of content?
k