forum.enarion.net
January 06, 2009, 09:55:16 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: New forum software installed, the old postings and user profiles have been migrated. Please log in with your settings and keep on forum'ing!
 
   Home   Help Search Chat Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Encoding with utf-8 site  (Read 1009 times)
m2nis
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


Email
« on: November 17, 2008, 03:29:53 PM »

I had some problems with encoding the links of my utf-8 web site. I have change the "setCharSet" of the functions.inc.php from "iso-8859-1" to "utf-8" file and everything seems to work now.
Report to moderator   Logged
forum.enarion.net
« on: November 17, 2008, 03:29:53 PM »

 Logged
m2nis
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 2


Email
« Reply #1 on: November 17, 2008, 05:37:40 PM »

I had some problems with encoding the links of my utf-8 web site. I have change the "setCharSet" of the functions.inc.php from "iso-8859-1" to "utf-8" file and everything seems to work now.

Oups ! It's not enough. I have also done (but be careful, this is just a fast and non secure modification to match my site):

I added the line :
   $url = utf8_decode($url);

just before this line (around 165) :
    $data = array('url' => $url);

in the file inc/gsgxml/GsgXml.class.php

But again, be careful, these corrections have been made after a very quick analysis of the code to let me get the right sitemap.
Report to moderator   Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!


Google visited last this page Today at 08:49:49 AM