Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-05-2005, 07:30 PM   #1
23style
Registered User
 
Join Date: Aug 2003
Location: Toronto
Posts: 4
Default URLEncodedFormat in remoting

Hey all, Happy New Year!

I am returning some stuff from a database to flash via CF remoting. I need to format some of what I am returning with URLEncodedFormat.

I tried this:

<cffunction name="getNews" access="remote" returnType="query">
<cfquery name="news" datasource=#db# username=#us# password=#pw#>
SELECT
id,
URLEncodedFormat(subject) AS subject,
URLEncodedFormat(content) AS content,
date_added,
date_modified,
added_by
FROM news
</cfquery>
</cffunction>

But it's a no go. subject / content turn up as undefined.

Is there any other way I could apply the URLEncodedFormat to subject and content and have CF return that back to flash?

The real problem is that its multiple records....so I cant just apply this to one thing as I am returning the whole query.

Any ideas my friends?

Thanks in advance
23style is offline   Reply With Quote
Old 01-08-2005, 07:52 PM   #2
J_Miller
Registered User
 
Join Date: May 2004
Posts: 71
Default

Hello...

Sorry to answer your question with a question, but considering you are using Flash remoting, what is the reason for needing to URL encode the values? URL encode would be used to properly format certain characters when sending back to Flash from a GET/POST......when using Flash remoting, this does not even apply bacause of the binary nature in which the data is transfered.

Just curious.
J_Miller is offline   Reply With Quote
Old 01-10-2005, 05:05 PM   #3
23style
Registered User
 
Join Date: Aug 2003
Location: Toronto
Posts: 4
Default

the information gets put in the database fine (spanish characters, swedish characters, etc...) but when i pull it from the database with cf and display it in flash, the characters come out as squares.

if i can URLEncodeFormat all that stuff before it comes into flash, then i can display it properly.
23style is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:10 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.