Armenian Knowledge Base

Armenian Knowledge Base (https://forum.armkb.com/)
-   Languages, Compilers, Interpreters (https://forum.armkb.com/languages-compilers-interpreters/)
-   -   Russian in AJAX (https://forum.armkb.com/languages-compilers-interpreters/24699-russian-ajax.html)

Mesrop 04.09.2006 10:20

Russian in AJAX
 
joxovurd, AJAX-ov erbvor ruseren tarer en gnum MySQL,
darnum en %u0422%u0415%u0421%u0422 (слово "ТЕСТ")
imho, hnaravora et %u0422 sarqel sovorakan ruseren Character..
bayc inchpes? :)

Fox 04.09.2006 10:33

Nakh petqa chshtel te inch AJAXes ogtagorcum

heto Rusrent UNICODE da te che?

heto karokha mySQLna pchacnum?

ka Microsoft-i ActiveX vor normal ashkhatuma UNICODE het

ka Infragistics -i AJAX komponent vor nuinpes normal ashkhatuma

Mesrop 04.09.2006 10:44

Русеренс Юникода.
cgidem mysqlna pchacnum te che... :(
isk chisht klni ete php-i STRTR funkcia-ov sax replace anem>? :)
vrode:
(%)u0422 > Т (lol (%) em grel, vortev FORUM-um post anelucel er sarqum normal tar. :) )

senc bolor mecatarneri u poqratarnei hamar... :)

Mesrop 04.09.2006 10:51

Че. тенцел чи линум. РИплейсовел "?" - а берум ет Символ-и техы... :(
ете форумум ет 6 символнеры саркума 1символ нормал русерен, уремн инчвор михат ПХП Функиця а петя имхо... :(

AvDav 04.09.2006 10:57

nu vobshem to u0XXX i est kajdiy uniocde simvol, pti tenas te konkret vortex es output anum u nde henc unicode apply anes. baci dranic kara pordzes mysqlum charset tal unicode karoxa ogni, konkret vonc chem hishum bayc dzer kar.

Fox 04.09.2006 11:07

nakh Debug porci anes
ete ASP ov grum , Visual Studio-ic attach ara u porci
ete PHP -ov uremn Zend khodi tur
u step-by-step tes te vortekha pchanum

chanaparin qo mot da kara mi 4-5 tekhum pchana
skzbic porci localisacnel khndir

Fox 04.09.2006 11:09

mySQL um sjunakt inch tipia?

Mesrop 04.09.2006 12:09

Quote:

Originally Posted by Fox (Post 498949)
mySQL um sjunakt inch tipia?

MyISAM
isk karoxa vor outputi vra drelem htmlspecialchars() dranica?

Fox 04.09.2006 12:25

mihat porci
insert u select anes
ktesnes
ete normala uremn arden PHP i mej nai

DEBUG ara prci eli

Mesrop 04.09.2006 13:46

PHPMyAdmin-ovela tenc symbolner cuctali... :(
aysinqn [email protected] ADD-ica...
isk ADD linuma ay es php scriptov
PHP Code:

function add_line($to,$msg) {
    
include 
"config.php";
include 
"functions.php";
mysql_connect($db_host$db_login$db_pass);
mysql_select_db($db_name);
mysql_query("set names 'cp1251'");

if (
proverka($_COOKIE['c_username'], $_COOKIE['c_password'])==TRUE and $msg==TRUE and $to==TRUE){

$query="INSERT INTO `m_message`(`username`,`to`,`text`,`date`,`ip`,`view`) VALUES ('".$_COOKIE['c_username']."', '".$to."','".addslashes($msg)."','".date("[H:i:s]")."','".$_SERVER['REMOTE_ADDR']."','0')";

if (
mysql_query($query)==TRUE){
return 
true;}
}
else {return 
false;}
        
    } 


Fox 04.09.2006 14:13

mysql_query("set names 'cp1251'");

PHP-i lav chgitem baic ajs tokh im dur chi gali !

Fox 04.09.2006 14:18

plus MS SQL vor banes avelacnum
u da UNICODOVA dimac petqa gres
N'here is some UNICODE'

ajsinq dimacic petqa lini N

AvDav 04.09.2006 14:25

cp1251-y kadzirofkena tali che ? de eti unicode chi pti hla naes mi dzevi vonc es dran unicodeov poxarinum.

Mesrop 04.09.2006 14:36

vapshe et [email protected] karam hanem. eti karcem SELECT-i hamara. isk yes Insert em anuim.
haneci. et [email protected] dranic chi... :( sax nuynna

AvDav 04.09.2006 14:51

aper vobshm, amen tablica injqam gidem toxeri pahman ira kadzirofken uni u inqy paumalchanyu et cp1251 a to li incha bayc hastat unicode chi, et dzevy vor imanas vonc poxes, erevi kashxti, nde pti inch vor hraman lni, helpum charset-eri masin karda.


All times are GMT. The time now is 08:28.

Powered by vBulletin® Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.