Ask a Question related to PHP Development, Design and Development.
-
mrtima at aol dot com #1
#25872 [NEW]: Query of MS-Word char causes ISO number to show up instead of actual character
From: mrtima at aol dot com
Operating system: Any
PHP version: 4.3.1
PHP Bug Type: MySQL related
Bug description: Query of MS-Word char causes ISO number to show up instead of actual character
Description:
------------
When certain MS-Word characters such as (’) are returned from a query in
MySQL and displayed to a webpage, you see ’ instead.
MS-Word parenthesis = ’
Standard ASCII paranthesis = '
Reproduce code:
---------------
//database connection params
include("db_conn.php");
//the database should have a MS-Word parenthesis in it (’)
$result = mysql_query("SELECT textvalue FROM anytable");
$fetch_result = mysql_fetch_object($result);
//display result to a webpage
echo $fetch_result->textvalue;
Expected result:
----------------
’
Actual result:
--------------
’
--
Edit bug report at [url]http://bugs.php.net/?id=25872&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=25872&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=25872&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=25872&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=25872&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=25872&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=25872&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=25872&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=25872&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=25872&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=25872&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=25872&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=25872&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=25872&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=25872&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=25872&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=25872&r=float[/url]
mrtima at aol dot com Guest
-
#39906 [NEW]: Unable to use place holders as part of the actual SQL query with PDO's
From: iab398 at bham dot ac dot uk Operating system: Unix PHP version: 5.2.0 PHP Bug Type: SQLite related Bug description: ... -
#38929 [NEW]: fputcsv() fgetcsv() inconsistency even number backslashes then enclosure char
From: mike at opendns dot com Operating system: Linux, debian sarge PHP version: 5.1.6 PHP Bug Type: *Directory/Filesystem... -
Number of Character of a string
how do you evaluate the number of characters that made a string? I have to display the string present into a database field. The string is the... -
#26280 [Fbk->Opn]: update query cut off with ascii char > 128
ID: 26280 User updated by: jochen dot daum at cabletalk dot co dot nz Reported By: jochen dot daum at cabletalk dot co dot nz... -
#25872 [Opn->Bgs]: Query of MS-Word char causes ISO number to show up instead of actual character
ID: 25872 Updated by: iliaa@php.net Reported By: mrtima at aol dot com -Status: Open +Status: Bogus...



Reply With Quote

