Ellhnika se X kai consola ...
Nick Stivaktakis
SigmaN at her.FORTHnet.GR
Wed May 14 17:50:30 EEST 1997
----------
> From: Jiannis Mitsos <gmitsos at demokritos.cc.duth.gr>
> To: Linux Greek Users <linux-greek-users at argeas.argos.hol.gr>
> Subject: Ellhnika se X kai consola ...
> Date: 13 May 1997 08:49
>
> Prospa8w na ftia3w ena cgi scriptaki to opoio 8a pairnei apo mia
> forma mia ellhnikh le3h kai 8a kaneis kati antistoixiseis .
> To programa poy kanei tis antistoixiseis paizei sthn consola me
> ellhnika . Ayto poy 8a h8ela na rwthsw einai to e3hs :
> O xrhsths o opoios xrhsimopoihsei ena netscape apo makria kai 8a
> balei thn ellhnikh le3h se ena pedio otan mou thn sthlh sto linux
> mou bgazei kati treloys xarakthres ... to problhma apo oti
> katalabainw einai ka8ara 8ema enconding ... mhmpws kaneis
> gnwrizei kanena tropo etsi wste na ginetai kapoia antistoixish
> apo ta ellhnika toy "netscape" se kapoia allh morfh poy na
> mporw na ta dw apo thn consola !!!!!
>
>
> Giannis Mitsos
> gmitsos at duth.gr
> --
To encoding pou les einai to ejis:
Gia ton xarakthra "a" as'poume, sou epistrefei to: "%XX"
Opou XX enas dekaejadikos arithmos.
Gia na metartepseis twra esu to "%XX" se "a" arkei na kaneis
to parakatw:
sscanf(hex,"%x",&dec);
Opou hex tha einai to string: "XX" (Proseje ! Xoris to %) kai to
dec tha einai enas int pou tha periexei ton xarakthra pou theleis.
Ton integer auton mporeis na ton kaneis string me:
str[0]=dec;
str[1]=0;
'h opws alios nomizeis ...
PS: Meta apo auto den einai sugouro oti tha blepeis ta elljnika auta
sthn consola. Oi xarakthres pou tha deis einai autoi pou egrapse
o xrisths, asxeta an autos xrishmopoiouse allo font.
Auta ...
Bye.
Nick Stivaktakis <SigmaN at her.FORTHnet.GR>
--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argeas.argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================
More information about the Linux-greek-users
mailing list