| |||||||
| Register | Projects | FAQ | Members List | Mark Forums Read |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
Wait wait .. And now v6 is available but character problems are available too. ![]() I have 6 different characters in Turkish; ı , İ , ş , Ş , , , , , , , ğ , Ğ I want to change these charactes in the url with; i , I , s , S , u , U , o , O , c , C , g , G Is this code ok in lib/misc.lib.php ??? $string = str_replace('ı', 'i', $string); $string = str_replace('İ', 'I', $string); $string = str_replace('ş', 's', $string); $string = str_replace('Ş', 'S', $string); $string = str_replace('', 'u', $string); $string = str_replace('', 'U', $string); $string = str_replace('', 'o', $string); $string = str_replace('', 'O', $string); $string = str_replace('', 'C', $string); $string = str_replace('', 'C', $string); $string = str_replace('ğ', 'g', $string); $string = str_replace('Ğ', 'G', $string); I think, this is not enough. I've tried that but no action. Example: Code: Content visible to registered users only. Please register at http://www.nicecoder.com/community/register.php Code: Content visible to registered users only. Please register at http://www.nicecoder.com/community/register.php . . . // replace western chars with latin $string = str_replace(GetWestern('a'), 'a', $string); $string = str_replace(GetWestern('i'), 'i', $string); $string = str_replace(GetWestern('u'), 'u', $string); $string = str_replace(GetWestern('e'), 'e', $string); $string = str_replace(GetWestern('o'), 'o', $string); $string = str_replace(GetWestern('c'), 'c', $string); $string = str_replace(GetWestern('d'), 'd', $string); $string = str_replace(GetWestern('y'), 'y', $string); $string = str_replace(GetWestern('n'), 'n', $string); $string = str_replace('ı', 'i', $string); $string = str_replace('İ', 'I', $string); $string = str_replace('ş', 's', $string); $string = str_replace('Ş', 'S', $string); $string = str_replace('', 'u', $string); $string = str_replace('', 'U', $string); $string = str_replace('', 'o', $string); $string = str_replace('', 'O', $string); $string = str_replace('', 'C', $string); $string = str_replace('', 'C', $string); $string = str_replace('ğ', 'g', $string); $string = str_replace('Ğ', 'G', $string); . . . . |
| |||
|
Try this: - do not make changes with /lib/misc.lib.php as above, restore to original file ![]() - edit /lib/western_chars.php, add above characters into appropriate latin characters $western_chars['a'] = array('','','','','','','','','','','', '','',''); $western_chars['i'] = array('','','','','','','',''); $western_chars['u'] = array('','','','','','','',''); $western_chars['e'] = array('','','','','','','',''); $western_chars['o'] = array('','','','','','','','','','','', '','',''); $western_chars['y'] = array('','','',''); $western_chars['n'] = array('',''); $western_chars['d'] = array('',''); $western_chars['c'] = array('',''); |
| |||
|
Sorry, I've changed /lib/western_chars.php like below; <? $western_chars['a'] = array('','','','','','','','','','','', '','',''); $western_chars['i'] = array('','','','','','','','','İ'); $western_chars['u'] = array('','','','','','','',''); $western_chars['e'] = array('','','','','','','',''); $western_chars['o'] = array('','','','','','','','','','','œ', 'Œ','',''); $western_chars['y'] = array('','','Ÿ',''); $western_chars['n'] = array('',''); $western_chars['d'] = array('',''); $western_chars['c'] = array('',''); $western_chars['s'] = array('ş','Ş'); $western_chars['g'] = array('ğ','Ğ'); ?> It's not working. http://dizin.acenteonline.com Last edited by Morphe; 05-12-2008 at 04:03 PM. |
| |||||||||||
|
Believe it or not, you have multiple character codes in what you posted which is probably causing the issue. All characters need to be written in the same character code. ('ş <- your quote ' is in Unicode 15F for one example, I suspect this is because of your operating system. Try and use an editor that will allow you to view character codes for each character such as editplus or textpad.
__________________
|
| |||
|
the western_char.php is in ANSI code. It's safer to use notepad and with your turkish keyboard to write: Ğ, ğ, İ, ı, Ş, ş If you send me above characters in ANSI plain text file, i'll update the code for you. I browsed websites, but most of them use utf8 |
| |||
|
To let you know that, the first time I download the attached file above, it display wrong character again I even tried with 3 different os (ubuntu, xp, vista) but still wrong ![]() But then I tried to change xp language and keyboard to turkish and it work ![]() Ok, here is, try to upload in /lib folder, and let me know if it work, I will update svn too. |
| |||
|
Thanks Dody. I've updated two files. Did you test it? http://dizin.acenteonline.com/ I'm going to resign to speak Turkish. But I don't know another language Last edited by Morphe; 05-15-2008 at 03:56 AM. |
| |||
| Code: Content visible to registered users only. Please register at http://www.nicecoder.com/community/register.php It how to adapt coding Polish signs in western_char.php Large letters A „ C † E ˜ L Ĺ N Ĺƒ O Ă“ S Ĺš Z Ĺą Ĺ Small letters a … c ‡ z Ĺş ĹĽ e ™ l Ĺ‚ n Ĺ„ o Ăł Graphic appearance: http://www.krynica.malopolska.pl/charset.jpg |
| |||
| Code: Content visible to registered users only. Please register at http://www.nicecoder.com/community/register.php i'm polish user indexU. in my software link looks like this: %e4%98%e3%93%e4%84%e5%9a%e5%81%e5%bb%e5%b9%e4%86%e 5%83_1.html help me please |
| |||||||||||
|
Users should really start their own threads if their issue is not identical to the one this thread is about. This thread is about the Turkish language
__________________
|
| |||
| Code: Content visible to registered users only. Please register at http://www.nicecoder.com/community/register.php If you can this very I ask about transfer in proper place ![]() Your support disappoints I will admit.And turn "30 Day Money Back Guarantee!"It seems to be absolutely already without covering I wrote to Dody And nothing,respect nothing Lords customers absolutely which they paid PLEASE |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Turkish language character problem | secero | v5.x | 0 | 02-16-2008 02:03 PM |
| RSS character problem | TouchIt | v5.x | 1 | 11-03-2007 12:02 PM |
| Character Problem | uslanmaz | Pre-Sales Questions | 9 | 07-08-2007 04:01 PM |
| character problem after upgrading php version to 4.4.2 | gtithesexy | v5.x | 0 | 10-11-2006 06:42 AM |
| Special Character problem | chm3 | v5.x | 3 | 03-13-2006 03:17 AM |