The error seems to be error due to space or character set
========================================== - Error Executing Database Query.
-
Incorrect string value: '\xC2\x96 Jan...' for column 't61' at row 1
-
-
The error occurred in C:\ColdFusion8\wwwroot\JJ8\1_mmm\3mmm_add2_readhtml_action3===.cfm: line 79
-
-
77 : (type1, t61, add, JJ1)
-
78 : values
-
79 : ('#url.aatype1#', '#aacc2#', 'si', '#url.page#')
-
80 : </cfquery>
-
81 :
-
-
-
-
--------------------------------------------------------------------------------
-
-
SQLSTATE HY000
-
SQL insert into tbl_r001 (type1, t61, add, JJ1) values ('addmmm', '<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Yasser Indol, Singapore, 2 years 5 months</title> <script language="Javascript" type="text/Javascript"> var win1=null; function MM_openBrWindow2theURL,winName,features //v2.0 if win1 ifwin1.closed win1=window.opentheURL,winName,features; else win1.focus; else win1=window.opentheURL,winName,features; win1.focus; return false; function print_resumeformObj var summaryFlag = 0; var summaryCheckObj = formObj.summaryCheck
10 5023 acoder 16,027
Recognized Expert Moderator MVP
You should be using cfqueryparam for all inputs into the database.
I have tried using the following code == still error
======================= cf_sql_longvarchar
The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
Error Executing Database Query.
Incorrect string value: '\xC2\x82\xC3\x82\xC2\xA0...' for column 't6a' at row 1
The error occurred in C:\ColdFusion8\wwwroot\job8\1_\3mmm_add2_readhtml_ action3===.cfm: line 79
77 : (type1, t6a, add, jb1)
78 : values
79 : ('#url.aatype1#', <cfqueryparam value="#aacc2#" cfsqltype="cf_sql_longvarchar">, 'si', '#url.page#')
80 : </cfquery>
81 :
============================= not sure if cf_sql_text can be used
The web site you are accessing has experienced an unexpected error.
Please contact the website administrator.
The following information is meant for the website developer for debugging purposes.
Error Occurred While Processing Request
Error Executing Database Query.
Incorrect string value: '\xC2\x82\xC3\x82\xC2\xA0...' for column 't6a' at row 1
The error occurred in C:\ColdFusion8\wwwroot\job8\1_\3mmm_add2_readhtml_ action3===.cfm: line 79
77 : (type1, t6a, add, jb1)
78 : values
79 : ('#url.aatype1#', <cfqueryparam value="#aacc2#" cfsqltype="cf_sql_text">, 'si', '#url.page#')
80 : </cfquery>
acoder 16,027
Recognized Expert Moderator MVP
This seems like a database error. Try the same query in your database directly and see if you still get the error.
good morning
for your info,
the error appears for only some of the database I am adding - only about 5% error, the rest of 95% is ok ( meaning that the database is still receiving the data added, so I am not sure if it is the database error)
Can It be due to the character in the html source code (the file that I am adding) like ᄋ
or some foreign character
:)
acoder 16,027
Recognized Expert Moderator MVP
Yes, most likely that's the source of the problem. If you're having problems, in some cases, of inputting directly into the database, then you'll have problems via Coldfusion. Try a simple HTML page with no foreign characters.
If there's no problem with simple pages, then you need to ask in the relevant forum for your database.
I have look thru the html source code, and it seems to be some foreign type set
and it should be chinese type set. the following at the codes:-
Hui Mian 黎辉勉
It seems to be in unicode (note: it looks different when i posted it here
acoder 16,027
Recognized Expert Moderator MVP
Which database are you using?
MYSQL 5.0
table is set with MYISAM
character set == latin1
latin1_swedish_ci
acoder 16,027
Recognized Expert Moderator MVP
Ask in the MySQL forum. I'll leave this thread here in case the problem persists in your Coldfusion application.
This is a problem that we face regularly with graphical characters that are part of word documents. While the all the special characters from the keyboard can be handled, there are five word processor special characters that are difficult to parse and replace inside html forms. These are two pairs of single and double inverted commas and hyphen. What we have seen is that when a user copies text from a word processor containing these texts, these are not recognised as characters. As a result error is thrown. When we analysed it further, we found that a single inverted comma is actually a normal comma placed in its superscript position. This is really funny. We should recommend to all browsers to deal with these special characters. These special characters copied from word processors must be converted in to corresponding keyboard characters. In fact on Windows the command line window automatically converts all word processor special characters in to keyboard characters. The browsers must embed this facility to overcome this problem
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Humber Consumer |
last post by:
I have a bunch of .HTML files . Each html file has help specific to a
dialog box of windows form app.
I want to make use of help provider to provide help.
So I set index.HTML as the namespace of...
|
by: Ben Amada |
last post by:
Hello,
A partner is going to be creating some HTML files that I plan on converting
to user controls (UC) and dynamically load at runtime. I'm guessing Visual
Studio doesn't come with some...
|
by: VK |
last post by:
Hi,
After the response on my request from W3C I'm still unclear about Tidy
vs. Validator discrepansies. That started with <IFRAME> issue, but
there is more as I know. Anyway, this very basic...
|
by: Giedrius |
last post by:
hi,
i have an idea to make admin tool on home computer, that would generate html
files using some kind of templates and database data and put these generated
html files to public web server, witch...
|
by: D`Jinn Deegee |
last post by:
I have 5 html files say
file1.html
file2.html
:
:
file5.html
Now I have another html file (main.html) where I want to use 1 html
| |
by: Klaus Jensen |
last post by:
Hi
I face this challenge:
An existing site with 50000+ html-files needs to be protected by a custom
login-system which has two goals:
1. Protect HTML-content (authentication required)
2....
|
by: Zoro |
last post by:
My task is to read html files from disk and save them onto SQL Server
database field. I have created an nvarchar(max) field to hold them.
The problem is that some characters, particularly html...
|
by: msg2ajay |
last post by:
hello,
i am very new to Ajax i have tried an example but it showing some error can anybady tell me where i am doing mistake... my coding is as follows
ajax.html:
-----------
...
|
by: Gary Hasler |
last post by:
I want apache to parse all .html files for php code. Our 'real' web
server is rented from ICDsoft ( php 5 on Apache on Linux whatever), and
their instruction is to add the following to the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |