I should have been more clear in my previous post. When I say "The
values print out in my log as expected", I meant that the first three
values print out as expected and the fourth prints out as "0.00P\uffffI".
Drew Vogel wrote:
> I am selecting 4 columns from a mysql table defined as
> double NOT NULL default '0'
> On line 4 below, a BadConversion exception is thrown, with the what()
> message of:
> Tried to convert "0.00P\uffffI" to a "d
> The \uffff is output as a block font. The conversion to \uffff is done
> by, I believe, GNOME's copy/paste.
> 1 double wpc1 = (double)row["wpc_slicing"];
> 2 double wpc2 = (double)row["wpc_piercing"];
> 3 double wpc3 = (double)row["wpc_chopping"];
> 4 double wpc4 = (double)row["wpc_bludgeoning"];
> The first three lines are converted fine. The values print out in my
> log as expected (I've omitted that code), which really puzzles me,
> because the value in the columns of the third and the fourth row are
> the same (0.0075). Any ideas what is causing the bad conversion and
> the (apparently) malformed error message?
> Drew Vogel