I'm probably not much help. I was converting information recieved on my site
to a wddx recordset to be stored in a database field and then be used again
on my site. I knew that my problems were related to Spanish accented
characters and I actually built my recordset instead of using the built-in
function (my recordset was simple-- a set of variable names/variable values
so that a user could save work on a form and come back later, it was also in
a situation where the user would not have entered the HTML entities,
otherwise I would have to look for both. I also am assuming an IE browser on
a PC--in other words this is only a temporary fix)
I actually like Chris' idea of doing the search and replace before
deserialization. Another place that you might try is http://www.wddx.org.
They have a forum and I know that when I was looking at this there was a
thread on "special characters". I tried to do a search to get you the link,
but the server seemed to be slow and didn't return it. I know that there
were several people with better insight and solutions than mine--I planned
to revisit the thread when I got serious about this issue.
For what it is worth--I just used simple javascript replace on the recordset
before storing it in a hidden field to be passed. Eventually I plan to
develop a better solution (taking into account different platforms and a
complete set of characters)
var repAWDDX=new Array()
repAWDDX[0]="<char code='E1'/>"
repAWDDX[1]="<char code='E9'/>"
repAWDDX[2]="<char code='ED'/>"
repAWDDX[3]="<char code='F3'/>"
repAWDDX[4]="<char code='FA'/>"
repAWDDX[5]="<char code='F1'/>"
repAWDDX[6]="<char code='BF'/>"
repAWDDX[7]="<char code='A1'/>"
repAWDDX[8]="<char code='FC'/>"
var reA=new Array()
reA[0]=/�/g
reA[1]=/�/g
reA[2]=/�/g
reA[3]=/�/g
reA[4]=/�/g
reA[5]=/�/g
reA[6]=/�/g
reA[7]=/�/g
reA[8]=/�/g
function replaceAccentsWDDX(strText){
var k
for(k=0;k<repA.length;k++){
strText=strText.replace(reA[k],repAWDDX[k])
}
return(strText)
}
Good Luck!
Jennifer
-----Original Message-----
From: Matt Rodosky [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 06, 2000 1:17 PM
To: [EMAIL PROTECTED]
Subject: RE: wddx problem
Thanks Jennifer, Chris & Steve:
It looks like Chris' experience is right on. The code is fine, it seems that
every once and a while moreover.com's feed generates a goofy wddx packet.
Jennifer, could you give an example of how you use <char code=??> to clean
up files?? Moreover.com is at a loss to figure out what they can do to
prevent this, maybe its a simple fix from their end using your example...
Thanks,
Matt
-----Original Message-----
From: Jennifer A. Caulfield [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 06, 2000 9:21 AM
To: [EMAIL PROTECTED]
Subject: RE: wddx problem
I don't know if this would be the reason, but I got a similar error when my
pages included accented characters. I had to convert them using <char
code=??> before making the recordset.
Jennifer
-----Original Message-----
From: Matt Rodosky [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 06, 2000 12:28 AM
To: [EMAIL PROTECTED]
Subject: wddx problem
I've been using wddx to process backend pages from moreover.com, which has
been working great. Today I am getting this message:
XML parsing error: not well-formed (error code 4, line 70, column 16, buffer
offset 4196)
The error occurred while processing an element with a general identifier of
(CFWDDX), occupying document position (5:1) to (5:87) in the template file
d:\http\4pines\index.cfm
How do I figure out what is wrong?
TIA
Matt
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message
to [EMAIL PROTECTED] with 'unsubscribe' in the body.