help in mod rewrite ar char

Discussion in 'Apache' started by mhmdkhamis, Nov 26, 2007.

  1. #1
    i have some urls want to rewrite it but the problem in title page when google
    cash it
    if i displayed link LIKE that
    http://site.com/search.php?t=فلة
    it show ok in browser link and title and google will take it ok
    and title show like
    
    
    <title>فلة - العاب</title>
    
    Code (markup):
    IS OK


    but if it be LIKE that
    http://site.com/tags/فلة
    it have title browser problem and google will take link in arabic char but title will display like

    
    <title>ظپظ„ط© - العاب</title> 
    
    Code (markup):
    this is my .htacess rule to it
    
    RewriteRule ^tags/(.*) search.php?t=$1 [L]
    
    
    Code (markup):
    my meta encoding is
    
    
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1256" />
    
    Code (markup):
    any help please
     
    mhmdkhamis, Nov 26, 2007 IP
  2. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You'll need to see what character sets the SERVER supports, and make sure the one you are using is installed on the server, the META tag is client side only.

    the meta tag tells the web browser what character set to use, but the server has isn't setting in the httpd.conf file, you just need to make sure that is setup correctly for you.
     
    powerspike, Nov 27, 2007 IP