This content has been marked as final. Show 3 replies
> <cfcontent type="text/xml" reset="yes">
> <cfsetting showdebugoutput="No" enablecfoutputonly="Yes">
enablecfoutputonly="Yes", you need to wrap *all* the xml output in a cfoutput,
no xml header/root is getting sent to the browser which is probably what "XML
Parsing Error: not well-formed" is all about. try this:
<?xml version="1.0" encoding="UTF-8"?>
> <cfloop query="getLessonWords">
> <rec displayword="#displayWord# - #phonetic# /#definition#"
> sndurl="#filePath#" />
> Here's a page that is pulling the same data for the same thai/eng lesson.
that page is lying:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
might indicate other encoding problems lying in wait for you.
> Does anyone know how I can get foreign characters, not just Thai, into my XML
"just use unicode"
Thanks for responding.
When I place <?xml version="1.0" encoding="UTF-8"?> inside the cfoutput tags I get another error: XML Parsing Error: xml declaration not at start of external entity
as you can see for your self here: http://www.netspeaknow.com/getlessonwords3.cfm
The way I originally had it, the error looked like it had to do with a foreign character(?)
As far as "use unicode" , I'm not sure what that means. My database is using the unicode driver for Access. Should I be using a unicode font like Ariel Unicode MS in my xml document?
can you save the xml to a file & either send it to me or attach to this thread?
> As far as "use unicode" , I'm not sure what that means. My database is using
> the unicode driver for Access. Should I be using a unicode font like Ariel
> Unicode MS in my xml document?
you're not using unicode everywhere, as i pointed out that HTML page has
incorrect encoding hinting, maybe other cases in your website. "just use
unicode" also means use unicode everywhere.
no the font has nothing to do w/xml, only the browser display.