problem with "permitted_uri_chars" + "url_title" because of "arabic" + "utf-8" |
[eluser]DeaD SouL[/eluser]
Hello, I tried to add the arabic language to url_title() by editing Code: '[^a-z0-9\-\._]' => '', Code: '[^ء-يa-z0-9\-\._]' => '', like this Quote:�جرد-تجربة-با�عربيةso i decided to use unicode characters blocks instead of the characters according to Unicode Block 'Arabic' Code: ء = U+0621 Code: '[^[U+0621]-[U+064a]a-z0-9\-\._]' => '', and it worked just fine so i tried to do the same to Code: $config['permitted_uri_chars'] so i added this Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; // DEFAULT it gave me this error Quote:A PHP Error was encountered even if i go with this Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; // DEFAULT i get this error Quote:The URI you submitted has disallowed characters. any idea or help would be greatly appreciated thanks
[eluser]InsiteFX[/eluser]
Read the user guide you can create your own language files also there are lots of language file already designed on the wiki search for it. Enjoy InsiteFX
[eluser]DeaD SouL[/eluser]
dear InsiteFX, my problem is not with the language files they are working great my problem was with the url_site() function when i use it to make href links ex: Code: echo anchor('controller/method/' . url_site('some_name') , 'click here' ); but it's been solved [quote author="DeaD SouL" date="1257045025"] so i decided to use unicode characters blocks instead of the characters according to Unicode Block 'Arabic' Code: ء = U+0621 Code: '[^[U+0621]-[U+064a]a-z0-9\-\._]' => '', and it worked just fine [/quote] my currently problem is with Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; Quote:/* thanks for the tip anyone else..
[eluser]Unknown[/eluser]
جرب هذا = Try This Code: $arabic = 'اأآؤءئبتثجحخدذرزسشـصضطظعغفقكلمنهوية'; أو = or http://ellislab.com/forums/viewthread/120959/#602089 = :wow:
|
Welcome Guest, Not a member yet? Register Sign In |