>I added a field with the full XML response from UPS. In case anyone
>is interested. :)
>
>On 2/5/03, Bud penned:
> >OK. $250.00 reward to the first person who can tell me what I'm doing
> >wrong or give me evidence/show me how to prove that UPS is returning
> >the wrong character set. Knowing UPS, I suspect it's the latter.
> >
> >Here is the page:
> >
> >http://dev.cf-ezcart.com/registerups/
> >
> >Click Next.
> >
> >The text in the top textarea field is being returned by UPS which I'm
> >stripping from the XML. It is all screwed up. Most notably the French
> >text at the bottom, but also trademark symbols and such.
> >
> >The text in the bottom textarea field is the hard-coded text they
> >sent to me which I pasted in and displays properly.
> >
> >I'm using this at the top of the template:
> ><cfset setEncoding("form","iso-8859-1")>
> ><cfset setEncoding("URL","iso-8859-1")>
> ><cfcontent type="text/html; charset=iso-8859-1">
> >
> >This is in the HTML HEAD tag:
> ><meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
> >
> >I tried using <CFPROCESSINGDIRECTIVE pageencoding="iso-8859-1"> in
> >both the template and the custom tag I'm calling but it didn't make a
> >difference.
> >
> >CFMX server. CrystalTech.

Bud,

Since you're using MX, have you used the "charset" attribute of the CFHTTP 
tag and set it to "ISO-8859-1"? You may need to watch that "ISO-8859-1" for 
case-sensitivity, as you're passing it in to Java, which is case-sensitive. 
If you don't set it, the default is "UTF-8", which is where you might be 
running into trouble.

Regards,
Dave.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to