how to add new diacritic mark if it alreay in script, but didn't work

TrakaisKursis

No avatar

2009-09-16 17:50

Hi!

I have problems with diacritic marks

acoording file:

/**
* Change string to latin
* @return string
* @param string $sContent
*/
function change2Latin$sContent ){
  return 
str_replace(
    Array( 
'ś''ą''ź''ż''ę''ł''ó''ć''ń''Ś''Ą''Ź''Ż''Ę''Ł''Ó''Ć''Ń''á''č''ď''é''ě''í''ň''ř''š''ť''ú''ů''ý''ž''Á''Č''Ď''É''Ě''Í''Ň''Ř''Š''Ť''Ú''Ů''Ý''Ž''ä''ľ''ĺ''ŕ''Ä''Ľ''Ĺ''Ŕ''ö''ü''ß''Ö''Ü' ),
    Array( 
's''a''z''z''e''l''o''c''n''S''A''Z''Z''E''L''O''C''N''a''c''d''e''e''i''n''r''s''t''u''u''y''z''A''C''D''E''E''I''N''R''S''T''U''U''Y''Z''a''l''l''r''A''L''L''R''o''u''S''O''U' ),
    
$sContent
  
);
// end function change2Latin



"š" in addreses must be displayed as "š", but it doesn't work this way. here is example:

http://hwr-chemie.lv/?lv_alus-cauru%C4%BCu-t%C4%ABr%C4%ABsanas-l%C4%ABdzeklis-2405-brf-3000,62

in address "t%C4%ABr%C4%ABsanas" have to be "tīrīšanas"

same situation with "ž" which in address is displayed as "z"

I would be thankful for any help or advices

» Quick.Cms v2.x

TrakaisKursis

No avatar

2009-09-16 20:28

i am sorry for incorrect post - unfortunately post couldn't display latvian language mark http://lv.wikipedia.org/wiki/%C5%A0, which quick.cms in address shows as "s", with mark "ž" all is OK

Back to top
about us | contact