Go Back   NiceCoder Community Forums > Nicecoder Products > IndexU > INDEXU DELUXE v1.x
Register Projects FAQ Members List Mark Forums Read

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2008, 04:49 PM
Registered User
 
Join Date: Mar 2008
Posts: 12
Morphe is on a distinguished road
Question Mod-rewrite url character problem

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
It must be;

Code:
Content visible to registered users only. Please register at http://www.nicecoder.com/community/register.php
My lib/misc.lib.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);

.
.
.
.
  #2 (permalink)  
Old 05-12-2008, 12:12 AM
banned
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,299
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

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('','');
  #3 (permalink)  
Old 05-12-2008, 03:57 PM
Registered User
 
Join Date: Mar 2008
Posts: 12
Morphe is on a distinguished road
Default

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.
  #4 (permalink)  
Old 05-12-2008, 04:28 PM
Bruceper's Avatar
Nicecoder Team
I have a minor god complex
Yes, I really am that good
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,983
Bruceper is on a distinguished road
Default

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 goals of Good and Evil are typically the same. It is the way those goals are achieved that make the difference between the two. - Bruce Peresky
IndexU SupportIndexU FAQiDesk SupportCustom WorkDMOZ Slices
Purchase IndexUGuides & ManualsMailing ListTemplates/PluginsSVN Access
  #5 (permalink)  
Old 05-13-2008, 01:34 AM
banned
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,299
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

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
  #6 (permalink)  
Old 05-13-2008, 02:27 AM
Registered User
 
Join Date: Mar 2008
Posts: 12
Morphe is on a distinguished road
Default

Ok, realy interesting. I'm going to try again with notepad.
I used dreamw. yesterday. You are right, it uses utf8 for default encoding.
  #7 (permalink)  
Old 05-13-2008, 02:36 AM
Registered User
 
Join Date: Mar 2008
Posts: 12
Morphe is on a distinguished road
Default This is a confession

Yes, this is a confession. I can't use notepad

Dody, tr.txt in the attachments. Please?

And Bruce, I believe
Attached Files
File Type: txt tr.txt (34 Bytes, 19 views)

Last edited by Morphe; 05-13-2008 at 03:09 AM.
  #8 (permalink)  
Old 05-13-2008, 03:56 AM
banned
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,299
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

Thanks, but that file content is











? should it be new s, g, and i replacement?
  #9 (permalink)  
Old 05-13-2008, 09:51 AM
Registered User
 
Join Date: Mar 2008
Posts: 12
Morphe is on a distinguished road
Default

I've saved the file with two different format ( ansi - utf8 ) and added a screenshot. File content is below too. Thanks again

ı -> i
İ -> i
ş -> s
Ş -> s
-> u
-> u
-> o
-> o
ğ -> g
Ğ -> g
Attached Images
File Type: png tr.png (99.8 KB, 103 views)
Attached Files
File Type: txt tr-ansi.txt (84 Bytes, 7 views)
File Type: txt tr-utf8.txt (97 Bytes, 10 views)
  #10 (permalink)  
Old 05-14-2008, 02:58 AM
banned
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,299
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

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.
Attached Files
File Type: zip add_turkish.zip (5.8 KB, 18 views)
  #11 (permalink)  
Old 05-15-2008, 02:34 AM
Registered User
 
Join Date: Mar 2008
Posts: 12
Morphe is on a distinguished road
Default

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
Attached Images
File Type: png Untitled-1.png (35.8 KB, 95 views)

Last edited by Morphe; 05-15-2008 at 03:56 AM.
  #12 (permalink)  
Old 06-07-2008, 06:33 AM
Registered User
 
Join Date: Dec 2006
Posts: 96
Bobi is on a distinguished road
Default

Code:
Content visible to registered users only. Please register at http://www.nicecoder.com/community/register.php
Dody question and how do to make in Polish systenie this coding utf -8?
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
  #13 (permalink)  
Old 06-11-2008, 08:21 AM
Registered User
 
Join Date: Apr 2008
Posts: 8
Tomasz is on a distinguished road
Default

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
  #14 (permalink)  
Old 06-11-2008, 11:09 AM
Bruceper's Avatar
Nicecoder Team
I have a minor god complex
Yes, I really am that good
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,983
Bruceper is on a distinguished road
Default

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
__________________
The goals of Good and Evil are typically the same. It is the way those goals are achieved that make the difference between the two. - Bruce Peresky
IndexU SupportIndexU FAQiDesk SupportCustom WorkDMOZ Slices
Purchase IndexUGuides & ManualsMailing ListTemplates/PluginsSVN Access
  #15 (permalink)  
Old 06-20-2008, 07:34 AM
Registered User
 
Join Date: Dec 2006
Posts: 96
Bobi is on a distinguished road
Thumbs up Users should really start

Code:
Content visible to registered users only. Please register at http://www.nicecoder.com/community/register.php
Bruceper
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
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -5. The time now is 10:12 AM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO