Ask a Question related to Macromedia ColdFusion, Design and Development.
-
tim_993 #1
ASCII bug?
mysql
field.test="St. Patricks Day "
------------------------
form.cfm:
<cfquery name="getfield" datasource="database">
select field from test limit 1
</cfquery>
<cfoutput query="getfield">
<cfset value=field>
</cfoutput>
<form method="post" action="save.cfm">
<cfoutput><input type="text" name="field" value="#value#"></cfoutput>
<input type="submit" value="Save">
</form>
-------------------------------
save.cfm:
<cfoutput>
#field#
</cfoutput>
------------
outputs:
St. Patrick?s Day
with quote being ASCII 8217 . If I insert that into mysql, mysql converts it
to a space.
:confused;
tim_993 Guest
-
Non Ascii pathname
When I try to open a .dcr file that has Japanese characters in the pathname IE seems to find it fine. But the ActiveX control seems to be unable to... -
string to ascii
let's say I have a string say, "abcABC" how do I convert those 6 letters into their respective ASCII numbers, and if I have 6 ASCII numbers, how... -
using tr and ascii value
I'm updating a process that reads in text file from a mainframe extract. The script reads and parses out this file and creates html documents from... -
Ascii to tif.
AIX version 4.3.3 computer rs6000/f50 Is there a AIX/UNIX utility that will take an ASCII file and convert it to a TIF file? -
vkunirs #2
Re: ASCII bug?
Hi
use PreserveSingleQuotes when inserting the data into the table
vkunirs Guest
-
tim_993 #3
Re: ASCII bug?
’ is the html code for right single quote (hex 92). the html equivelent of microsofts smart right single quote
tim_993 Guest
-
tim_993 #4
Re: ASCII bug?
err, not sure where my last post went...
PreserveSingleQuotes does not fix the problem
tim_993 Guest
-
paross1 #5
Re: ASCII bug?
This is probably related to the fact that the character that you are attempting
to use is not an ASCII character, but extended ASCII. I'm sure that the driver
that you are using between CF and MySQL doesn't "understand" what this
character is, as its value is beyond ASCII, so it is making a substitution. I
found a bug note on the MySQL site that you may want to take look at.
[url]http://bugs.mysql.com/bug.php?id=7756[/url]
Phil
paross1 Guest
-
tim_993 #6
Re: ASCII bug?
Adding:
useUnicode=true&characterEncoding=Cp1250
to the connection string seemed to fix the problem.
tim_993 Guest



Reply With Quote

