Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What character set does XMLFormat generate?

2 views
Skip to first unread message

Grant

unread,
Mar 2, 2005, 10:45:52 AM3/2/05
to
The documentation says 'High ASCII characters in the range 128-255' are
'Replaced by unicode escape sequence.' When I use XMLFormat, it appears to
generate ISO-8859-1 hex notation encoding rather than UTF-8 encoding or raw
Unicode that an XML processor expects. Is this what's happening? And is this
valid encoding by XMLFormat? :confused;

PaulH

unread,
Mar 2, 2005, 12:43:17 PM3/2/05
to
what version of cf? i just tried on mx 6, see it
http://www.sustainablegis.com/unicode/testXML.cfm (code below) and it seems to
be returning valid unicode.

<cfprocessingdirective pageencoding="utf-8">

<cfquery name="getU" datasource="#dsn#">
SELECT uniText
FROM unicodeTest
ORDER BY uniLanguage
</cfquery>

<cfoutput query="getU">
#xmlformat(uniText)#<br>
</cfoutput>

Grant

unread,
Mar 2, 2005, 2:27:13 PM3/2/05
to
I'm using CF5. Is there any way to specify the page encoding with CF5?

Thanks.

Grant

unread,
Mar 2, 2005, 3:31:16 PM3/2/05
to
I'm generating an RSS feed. With some special characters in the text, the
XMLFormat function is generating hex encoded characters that are not recognized
by some RSS parsers because they are not the standard UTF-8 encoding.

PaulH

unread,
Mar 2, 2005, 3:28:19 PM3/2/05
to
just w/the plain meta header but i'd think that wouldn't help much. can you explain what you're trying to do?

PaulH

unread,
Mar 3, 2005, 4:02:32 AM3/3/05
to
sorry, i don't have cf5 box to try anything....what happens if you skip the xmlformat? is the xml valid?


0 new messages