| |||||||
![]() |
| | LinkBack | Seçenekler | Stil |
|
#1
| ||||
| ||||
| Awbs Kayıtta Türkçe Karakter Sorununun Çözümü
Merhaba Arkadaşlar elimden geldiği kadarıyla sizlere yardımcı olmaya çalışıyım. bu konuda birçok firma sıkıntı yaşamakta. awbs kayıt esnasında türkçe karakterleri otomatik olarak ngilizce karaktere dönüştürmeyi göstericem. işlem script koduyla gerçekleşmekte. örnek için: Web hosting - Domain- AWBS Tasarım - Radyo Hosting - Web Dizayn - Marmara Dizayn İlk olarak yapmamız gereken kullandığımız awbs temamız hangisiyse onun bulunduğu klasöre gitmek ve createacct.php dosyasını editlemek... dosyayı açtıktan sonra <?=$header?> <?=$top?> Satırının hemen altına şu kodu ekliyoruz. Kod: <head>
<script language="Javascript">
function iso88599Escape(strText)
{
strText=escape(strText);
strText=strText.replace(/%20/g," ");
strText=strText.replace(/Ş/g,"S");
strText=strText.replace(/ş/g,"s");
strText=strText.replace(/%0A/g," ");
strText=strText.replace(/%3A/g,":");
strText=strText.replace(/%2C/g,",");
strText=strText.replace(/%3B/g,";");
strText=strText.replace(/%21/g,"!");
strText=strText.replace(/%5E/g,"^");
strText=strText.replace(/%26/g,"&");
strText=strText.replace(/%28/g,"(");
strText=strText.replace(/%29/g,")");
strText=strText.replace(/%3D/g,"=");
strText=strText.replace(/%3F/g,"?");
strText=strText.replace(/%3C/g,"<");
strText=strText.replace(/%3E/g,">");
strText=strText.replace(/%23/g,"#");
strText=strText.replace(/%24/g,"$");
strText=strText.replace(/%7B/g,"{");
strText=strText.replace(/%5B/g,"[");
strText=strText.replace(/%5D/g,"]");
strText=strText.replace(/%7D/g,"}");
strText=strText.replace(/%7C/g,"|");
strText=strText.replace(/%C7/g,"C");
strText=strText.replace(/%E7/g,"c");
strText=strText.replace(/%BD/g,"½");
strText=strText.replace(/%A3/g,"£");
strText=strText.replace(/%5C/g,"/");
strText=strText.replace(/%D6/g,"O");
strText=strText.replace(/%F6/g,"o");
strText=strText.replace(/%27/g,"'");
strText=strText.replace(/İ/g,"I");
strText=strText.replace(/ı/g,"i");
strText=strText.replace(/%E9/g,"é");
strText=strText.replace(/Ğ/g,"G");
strText=strText.replace(/ğ/g,"g");
strText=strText.replace(/%22/g,'"');
strText=strText.replace(/%DC/g,"U");
strText=strText.replace(/%FC/g,"u");
return strText;
}
</script>
</head>
Mesela Kullanıcı adı: orjinal kodu şu şekildedir. Kod: <td align="right" valign="top"><br> <b class="red">*</b><?=USERNAME?>: </td>
<td class="smallblue"><br> <input type="text" class="formfield" name="newuid" maxlength="16"
value="<?=$newuid?>"> <br>
Yeni kodumuz şu şekilde olmalı Kod: <td align="right" valign="top"><br> <b class="red">*</b><?=USERNAME?>: </td>
<td class="smallblue"><br> <input type="text" class="formfield" name="newuid" maxlength="16"
value="" onKeyUp="this.value=iso88599Escape(this.value)"<?=$newuid?>"> <br>
Umarım yeterince açıklayıcı ve faydalı olmuşumdur. işlemde sorun yaşayanlar. buraya yazsınlar yardımcı olmaya çalışalım.
__________________ http://www.marmaradizayn.net - YS-(1012) |
|
#2
| ||||
| ||||
|
Daha önce bir konuda ben direk sayfayı vermiştim arkadaşım
__________________ RAMBilişim İnternet Hizmetleri - YS-839 |
|
#3
| ||||
| ||||
|
direk sayfa çözüm olamayabiliyor. sayfalarını editlemiş kişiler nasıl yapacaklarını bilmiyorlar. bende böyle bir kaynak hazırlama ihtiyacı hissettim. eğer forumda varsa fazlalık yapmasın ve yöneticiler konuyu silsinler lütfen.
__________________ http://www.marmaradizayn.net - YS-(1012) |
|
#4
| |||
| |||
|
halen awbs kullanan varmı |
|
#5
| |||
| |||
|
anlattıklarınızı uyguladım fakat birçok arkadaşımda daha awbs sinde uygulamama rağmen ç harfleri c ye dönüşüyor fakat ğ,ş,ı harfleri ing. karaktere donusmuyor bunların yerine %u16Fas gibi karakterler geliyor. yardımcı olabilirseniz sevinirim bizimde başımızın belası malesef ki ![]() Yazdım ama galiba cozduk problemi bir arkadaşımız ile tsk ler bilgi için |
|
#6
| ||||
| ||||
| Kod: <head>
<script language="Javascript">
function iso88599Escape(strText)
{
strText=escape(strText);
strText=strText.replace(/%20/g," ");
strText=strText.replace(/%u015E/g,"S");
strText=strText.replace(/%u015F/g,"s");
strText=strText.replace(/%0A/g," ");
strText=strText.replace(/%3A/g,":");
strText=strText.replace(/%2C/g,",");
strText=strText.replace(/%3B/g,";");
strText=strText.replace(/%21/g,"!");
strText=strText.replace(/%5E/g,"^");
strText=strText.replace(/%26/g,"&");
strText=strText.replace(/%28/g,"(");
strText=strText.replace(/%29/g,")");
strText=strText.replace(/%3D/g,"=");
strText=strText.replace(/%3F/g,"?");
strText=strText.replace(/%3C/g,"<");
strText=strText.replace(/%3E/g,">");
strText=strText.replace(/%23/g,"#");
strText=strText.replace(/%24/g,"$");
strText=strText.replace(/%7B/g,"{");
strText=strText.replace(/%5B/g,"[");
strText=strText.replace(/%5D/g,"]");
strText=strText.replace(/%7D/g,"}");
strText=strText.replace(/%7C/g,"|");
strText=strText.replace(/%C7/g,"C");
strText=strText.replace(/%E7/g,"c");
strText=strText.replace(/%BD/g,"½");
strText=strText.replace(/%A3/g,"£");
strText=strText.replace(/%5C/g,"/");
strText=strText.replace(/%D6/g,"O");
strText=strText.replace(/%F6/g,"o");
strText=strText.replace(/%27/g,"'");
strText=strText.replace(/%u0130/g,"I");
strText=strText.replace(/%u0131/g,"i");
strText=strText.replace(/%E9/g,"é");
strText=strText.replace(/%u011E/g,"G");
strText=strText.replace(/%u011F/g,"g");
strText=strText.replace(/%u011E/g,"G");
strText=strText.replace(/%u011F/g,"g");
strText=strText.replace(/%22/g,'"');
strText=strText.replace(/%DC/g,"U");
strText=strText.replace(/%FC/g,"u");
return strText;
}
</script>
</head>
|
|
#7
| ||||
| ||||
| Alıntı:
verdiğim kodlar aynen uygulanarak verilmiştir. örnek linkinden test edebilirsiniz.
__________________ http://www.marmaradizayn.net - YS-(1012) |
|
#8
| ||||
| ||||
| Fazla blgiden ne zarar gelir nede gözümüz çıkar ve bir ata sözü derki balık tutup verme balık tutmasını öğret... ata sözü olmayabilir kusura bakmayın çok yerinde bir anlatım tşk ediyoruz |
|
#9
| |||
| |||
|
Arkadaşım nasıl bir hayra geçti bilsen testini yaptım çok iyi çalışıyor
|
|
#10
| ||||
| ||||
|
ellerinize sağlık, firefox da çalışmıyor sanırım...
|
![]() |
| Seçenekler | |
| Stil | |
| |
Benzer Konular | ||||
| Konu | Konuyu Başlatan | Forum | Cevap | Son Mesaj |
| Türkçe karakter | duyartic | AWBS Destek | 3 | 26.03.08 00:53 |
| sql yedeğimde türkçe karakter hatası | efe seyit | Database | 13 | 17.03.08 23:46 |
| Awbs için mail şablonları ve türkçe karakter hataları | Tickhi | AWBS Destek | 5 | 26.02.08 19:33 |
| Türkçe Karakter Sorunu | PaRaDoKS | Soru ve Cevaplar | 1 | 24.09.07 15:25 |
| Türkçe Karakter Sorunu | goodboy | AWBS Destek | 2 | 16.09.07 00:05 |




