Welcome Guest, Not a member yet? Register   Sign In
Problem retrieving words with accents when they come from MySQL
#8

[eluser]caperquy[/eluser]
To answer xatrix question this is the text that I pass to the preg_match_all function :

Chaque étape est montrée dans des églises de différents coins de France

the word église I am looking for is really there

On the other hand I did what Kobus said :
I recreated my database using the following command :

Code:
CREATE DATABASE `ci_docavy` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;

I also set my HTML code to look like this :

Code:
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<?php
header('Content-type : text/html; charset=utf-8');
?>

Unfortunately there is no change.

CapErquy


Messages In This Thread
Problem retrieving words with accents when they come from MySQL - by El Forum - 02-04-2011, 04:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB