|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16163 bug for french characters
Submitted: 2002-03-19 06:25 UTC Modified: 2002-03-19 07:43 UTC
From: cris at tellme dot net Assigned:
Status: Not a bug Package: MSSQL related
PHP Version: 4.1.2 OS: windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
41 + 15 = ?
Subscribe to this entry?

 [2002-03-19 06:25 UTC] cris at tellme dot net
Here is the script that is supposed to insert in a MS SQL Server database some data including special french characters:

        // establish connection to database
	$li=mssql_connect("server", "user","password");
         // text to insert, written in french
	$test='voil? ?a c&#039;est la probl?me';
	$query="insert into toto values ('".$test."')";
	$rez = mssql_query("SET LANGUAGE french");
	$rez = mssql_query($query);

        // extract from db the data just inserted
	$query="SELECT test from toto";
	$toto = mssql_fetch_array ($qresp);

        // display the result
	echo $toto[0]; 

Here is what the database contains:
     voila ta c&#039;est la problFme

No french special characters at all.

Cris Badea
Web Developer
Tellme SA


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-19 07:43 UTC]
Do NOT reopen a new report, reopen the old one.
 [2002-03-21 03:35 UTC] cris at tellme dot net
is this a bug or not???? just anser me!!!!!!!
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Dec 06 11:05:52 2022 UTC