php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25872 Query of MS-Word char causes ISO number to show up instead of actual character
Submitted: 2003-10-14 15:58 UTC Modified: 2003-10-14 17:36 UTC
From: mrtima at aol dot com Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.3.1 OS: Any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mrtima at aol dot com
New email:
PHP Version: OS:

 

 [2003-10-14 15:58 UTC] mrtima at aol dot com
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:
--------------
’

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-14 17:36 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

You are probably inserting the encoded values into MySQL.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 10:01:29 2024 UTC