Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Strange print
Gennady Bystritsky
1/31/2006 4:00:00 PM
I am not completely sure, but you can try to play with $KCODE variable
settings. I am sure you know this, put 'p "abc"' is equivalent to 'puts
"abc".inspect' and 'inspect' outputs non-printable characters in escaped
form (like '\n' or '\326').
UPDATE: I just checked that with $KCODE = 'u', p shows "College" in
Russian just like that -- "bea[u]tiful text" ;-).
Gennady.
> -----Original Message-----
> From: list-bounce@example.com
> [mailto:list-bounce@example.com] On Behalf Of Valerij KIR
> Sent: Tuesday, January 31, 2006 7:10
> To: ruby-talk ML
> Subject: Strange print
>
> Hi all!
> I have some text in russian. Then I've print it with puts I
> saw beatiful text, but then use p operator text is
> "\353\317\314\314\305\304\326".
> How can I solve problem, because when using iconv the problem is same?
>
> --
> Posted via
http://www.ruby-...
.
>
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Strange print
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password