Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / November 2004



Tip: Looking for answers? Try searching our database.

CF, Non-ASCII chars and Java

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cfdv - 29 Nov 2004 17:43 GMT
I'm running CF5 on Solaris. I have a Java class that I access from within a cf
page. When I pass a String to a Java Method, all Non-ASCII chars such as ???
are being replaced by a question mark '?'. I encounter this problem only on the
Solaris Installation. The same code runs correctly on a Windows installation. A
simple example to illustrate the problem: I have a Class Test with a simple
method that just returns the String argument: public static String test(String
s){ return(s); } In cf, I do <cfobject type='java' name='test' action='create'
class='Test'> <cfoutput>#test.test('???')#</cfoutput> On Solaris, I get ???, on
Windows I get ???.  Any ideas?  Thanx andri
vkunirs - 30 Nov 2004 09:11 GMT
hi

try to give the character format in the cf file.

Srinivas
cfdv - 30 Nov 2004 09:37 GMT
thanks, Srinivas
How can I give the character format?
with cfprocessingdirective? this is new in MX, and I'm running CF5.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.