1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

French Charset !!! Help

Discussion in 'PHP' started by coun_vincent, Mar 14, 2012.

  1. #1
    Hey ,

    i've translate one of my Website to French Version , i did that on my first VPS and works well ......But when i bought the second VPS to host my Website there i've got some words are showing as QUESTION INSIDE THE DiAMOND ( ex : t�l�charger ) .

    i don't know why :confused: , the same code and the same PHP version :rolleyes:


    Please can anyone Help me ?

    Code :
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
        <head>
            <meta http-equiv = "content-language" content = "fr">
            		<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15" />
    PHP:

     
    Solved! View solution.
    coun_vincent, Mar 14, 2012 IP
  2. #2
    where is your data comes from, a database ?
    if yes use the htmlentites function and add the charset code as a parameter
    check HTMLEntities at php.net

    if it's a static text
    try to use the iconv function and also pass the french charset to it iconv("charset-french","UTF-8","{$yourtextvar}");
     
    Deu, Mar 14, 2012 IP
    coun_vincent likes this.