|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Need help converting a php function to coldfusion
Ok, i need to find a way in coldfusion to do the php equivalent of the 'ord' function.
What i am doing is reading some info from a database that has some odd characters in it. when i use the php ord function on something that is supposed to be a - it is converted to 150 which is the right ascii code for a - but when i use ASC in coldfusion, i get 65430. let me know if you want me to post the code im working on, thanks a ton. |
|
#2
|
|||
|
|||
|
Make sure that you're trimming out any spaces, and only using Asc() on one character at a time. If you're trying to strip out any odd characters that do not agree with how you want to display the data, you can also try using a REReplace and replace those funky characters with "".
-GoatTuber www.violentreaction.com |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Cold Fusion Development > Need help converting a php function to coldfusion |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|