Cortical Posted August 5, 2010 Posted August 5, 2010 FM11Adv Mac 10.6.4 I have calc(s) that returns data suitably html encoded , and saves a page as a .html file. Basically it is a page generator. Export a single field contents is used to create a text file with a .html extension All works except for some weirdness seemingly buried and invisible in the doc declaration. A simple standard skeletal XHTML 1.1 page code, copied straight out of SEEdit, and pasted into a global, then using export field contents, mutates the code such that validator thinks it might be 1.0 and at times (in testing variations) that it needs a title It is something to do with the first line of the doc dec, the string is 38 characters when field contents are exported it looks exactly the same, but copying the first line of the export and pasting back , although it looks like the same string, the character count becomes 76, or 98 or 152 noticed so far This is 38 characters <?xml version="1.0" encoding="UTF-8"?> exporting the field contents above as aa.html, then opening the aa.html in an xhtml editor (SEEdit), it looks like this ��<
comment Posted August 5, 2010 Posted August 5, 2010 See if this helps: http://fmforums.com/forum/showtopic.php?tid/202393/post/321101/#321101
Cortical Posted August 5, 2010 Author Posted August 5, 2010 thanks I have one field, one record, all I want is the equivalent of copy paste into a text doc
comment Posted August 5, 2010 Posted August 5, 2010 (edited) Not exactly: if you copy and paste into a text document, then save it as UTF-16 encoded, you will get the same result. You could try exporting as tab-delimited (I don't suppose you have any tabs in a HTML page)*, or use AppleScript to create the document - but really, XML/XSL is the ideal method to use here. --- (*) Sorry, that won't work - carriage returns will be converted to vertical tabs. Edited August 5, 2010 by Guest
Cortical Posted August 5, 2010 Author Posted August 5, 2010 i thought something like copy field in FM then touch ~/desktop/qq.txt pbpaste > ~/desktop/qq.txt may work, but fm clipboard... touch ~/desktop/qq.txt open ~/desktop/qq.txt then manually paste is a half baked solution, compared to the single button click script export and open (mutant) result xml/xls ; groan
Recommended Posts
This topic is 5223 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now