Strange print

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-forum.com/\.