[SOLVED] XMap Not Showing Greek Characters
6 posts
• Page 1 of 1
[SOLVED] XMap Not Showing Greek Characters
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.
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

- Posts: 2
- Joined: Thu Sep 04, 2008 12:13 pm
Re: XMap Not Showing Greek Characters
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:
and replace it by
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";
-

guilleva - Administrator

- Posts: 1517
- Joined: Wed Sep 12, 2007 3:10 am
- Location: San José, Costa Rica
Re: XMap Not Showing Greek Characters
Sorry for the absense. I Tried the change you recommended and worked fine 
Thank you!
Thank you!
- BLaCKie_MoRGaN
- Fresh Boarder

- Posts: 2
- Joined: Thu Sep 04, 2008 12:13 pm
Re: [SOLVED] XMap Not Showing Greek Characters
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:
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.
- 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

- Posts: 2
- Joined: Wed Sep 10, 2008 7:07 pm
Re: [SOLVED] XMap Not Showing Greek Characters
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?
-

guilleva - Administrator

- Posts: 1517
- Joined: Wed Sep 12, 2007 3:10 am
- Location: San José, Costa Rica
Re: [SOLVED] XMap Not Showing Greek Characters
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);
- neokolyan
- Fresh Boarder

- Posts: 2
- Joined: Wed Sep 10, 2008 7:07 pm
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest