Wednesday, 22 October 2014 15:34
beggarly

[SOLVED] XMap Not Showing Greek Characters

Report Xmap bugs on this forum.

[SOLVED] XMap Not Showing Greek Characters

Postby BLaCKie_MoRGaN » Thu Sep 04, 2008 12:16 pm

I have fixed the preferences thing by entering UTF-8 in language file.

Now i want to show these links to google from that link

http://www.epiruspost.gr/component/opti ... /view,xml/

As you can see there are garbled greek letters.

I use sh404sef to make these links. Is there anything i can do to make it right?

PS: I html sitemap they work ok.
Last edited by BLaCKie_MoRGaN on Tue Sep 09, 2008 6:19 am, edited 1 time in total.
BLaCKie_MoRGaN
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Thu Sep 04, 2008 12:13 pm

Re: XMap Not Showing Greek Characters

Postby guilleva » Thu Sep 04, 2008 1:34 pm

Hi, which version of Xmap and Joomla are you using?

Please try the following:

Open the file /components/com_xmap/xmap.xml.php and look for the line:
Code: Select all
         echo '<loc>', $this->escapeURL($link) ,'</loc>'."\n";


and replace it by

Code: Select all
         echo '<loc>', $link ,'</loc>'."\n";
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re: XMap Not Showing Greek Characters

Postby BLaCKie_MoRGaN » Tue Sep 09, 2008 6:19 am

Sorry for the absense. I Tried the change you recommended and worked fine :)

Thank you!
BLaCKie_MoRGaN
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Thu Sep 04, 2008 12:13 pm

Re: [SOLVED] XMap Not Showing Greek Characters

Postby neokolyan » Wed Sep 10, 2008 7:22 pm

The same problem with xmap + sh404sef + russian simbols. But I found the other way before read this post - in xmap.xml.php at line 68 add 3-d parameter UTF-8:
Code: Select all
$xTrans = get_html_translation_table(HTML_ENTITIES, ENT_QUOTES, UTF-8);

By default it using ISO-8859-1. But in joomla 1.5.x we've got UTF-8..
So we have almost the same code and no surprise with code.
neokolyan
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Wed Sep 10, 2008 7:07 pm

Re: [SOLVED] XMap Not Showing Greek Characters

Postby guilleva » Fri Sep 26, 2008 1:31 pm

Hi, thanks for your message, but according the php documentation, the function get_html_translation_table doesn't accept a third argument! Maybe you meant htmlentities?
User avatar
guilleva
Administrator
Administrator
 
Posts: 1527
Joined: Wed Sep 12, 2007 3:10 am
Location: San José, Costa Rica

Re: [SOLVED] XMap Not Showing Greek Characters

Postby neokolyan » Fri Sep 26, 2008 6:12 pm

http://us2.php.net/manual/ru/function.htmlentities.php - here I've got the 3-d parameter, you are right. I didn't expected that it will work, but it works=))
Code: Select all
$xTrans = get_html_translation_table(HTML_ENTITIES, ENT_QUOTES, UTF-8);
- it's working code.
neokolyan
Fresh Boarder
Fresh Boarder
 
Posts: 2
Joined: Wed Sep 10, 2008 7:07 pm


Return to Bugs



Who is online

Users browsing this forum: Google [Bot] and 3 guests