forum.enarion.net
July 04, 2009, 03:14:39 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 2991 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
lukaszolek
Newbie
*

Karma: +0/-0
Offline Offline

Posts: 1


« Reply #2 on: January 30, 2009, 05:26:02 PM »

I still have a problem with this issue - I have changed setCharSet to UTF-8, and added $url = utf8_decode($url); in GsgXml.
On a list of found files (after choosing Start Scan), the URLs are displayed correctly (with UTF-8 characters). Sitemap.txt is also correct. However sitemap.xml contains '?' instead of my UTF-8 characters.
Can anybody help me?

An example:
URL: http://magdaolek.kadan.pila.pl/magdaolek.pl/fotografia/Polecam/strony/Kreacja_Piękna.html
sitemap.xml:
<url>
<loc>http://magdaolek.kadan.pila.pl/magdaolek.pl/fotografia/Polecam/strony/Kreacja_Pi?kna.html</loc>
<lastmod>2009-01-28T08:21:25+01:00</lastmod>
<changefreq>weekly</changefreq>
<priority>0.5</priority>
</url>
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 July 03, 2009, 12:06:47 PM