Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

Non ascii char url's.....
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: Non ascii char url's.....

Non ascii char url's..... 17 years, 10 months ago #1560

  • cyberjeanus
Hi this is a topic which is quite new, but very interesting:

I did not know that it is possible, to use non ascii char urls, but it is. And this is quite important for me....

Artio can't create those non ascii urls, instead of that it creates www.xyz/cn///index.php

Or is it a matter of my provider??? Perhaps Michal can give us some information! Thanks

Re:Non ascii char url's..... 17 years, 10 months ago #1563

  • cyberjeanus
Hi,

I'm using Artio on a page with tree languages. English, German and Chinese. Artio can generate urls in German and English, but it can't generate urls in Chinese. I looked into the code of Artio, and if I understand it right, Artio uses the actual language to generate the url, and if it's not possible, it takes english. In fact, that doesn't work 100%...so sometimes Artio gernerate urls like www.xyz.com////index.php - because of Chinese...I guess.

Is there a way, to define English for the only url-language.....that would make sure, that all links are created in the right way...can someone show me, how to change the code, so that all urls use English language???

Thanks:

Re:Non ascii char url's..... 17 years, 10 months ago #1564

  • cyberjeanus
here is some code, which is responsible for the language of the url:

sef.php

// Load language file.
if (file_exists($sefDirAdmin.'language/'.$mosConfig_lang.'.php')){
include($sefDirAdmin.'language/'.$mosConfig_lang.'.php');
}
else {
include($sefDirAdmin.'language/english.php');


sef_ext.php

// Add language to path if set to.
if (class_exists('JoomFish') && isset($lang) && $sefConfig->langPlacement == _COM_SEF_LANG_PATH) {
$slash = ($temploc != '' && $temploc[0] == '/');
$temploc = $lang.($slash || strlen($temploc) > 0 ? '/' : '').$temploc;
}

if ($sefConfig->addFile) {
if (!eregi($sefConfig->suffix.'$', $temploc) && substr($temploc, -1) == '/') {
$temploc .= $sefConfig->addFile;
}
}


How can I change it to only one language version, in that case english!

Re:Non ascii char url's..... 17 years, 9 months ago #1615

  • cyberjeanus
nobody has an idea?
  • Page:
  • 1
User Login Empty