Is it possible to use foreign characters with UTF-8 encoding in the console on MacOS X? I found a few OLD tutorials on the Internet and none of them seemed to work. I''m using Leopard by the way. When I try to paste in Chinese characters from AltaVista Babel Fish it just starts beeping and nothing happens. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 5/9/08, Stedwick <philip.brocoum-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Is it possible to use foreign characters with UTF-8 encoding in the > console on MacOS X? I found a few OLD tutorials on the Internet and > none of them seemed to work. I''m using Leopard by the way. When I try > to paste in Chinese characters from AltaVista Babel Fish it just > starts beeping and nothing happens.How is your question related to Ruby on Rails? What''s foreign caracters? English is very foreign to me. Also, please specify your current settings of Terminal and what exactly you tried to paste. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I''m using the Ruby on rails plug-in called globalize. It works great so far through the browser, but I would like to be able to mess with it using the script/console command. I went to AltaVista Babel Fish and translated some English text into simplified Chinese. When I paste that into the MacOS X terminal it works fine, but only in the bash shell not in the script/console. When I try to paste simplified Chinese characters into the script/console it just beeps and does nothing. Chinese characters work fine when submitted using a form in a browser (again translated with Babel Fish), so I know that globalize is working, but I would like to be able to mess with it using the script/ console. The $KCODE is set to UTF-8 and the MacOS X terminal preferences are set to UTF-8 and the "escape non-ASCII characters" checkbox is NOT checked. Again, pasting Chinese into the terminal works fine, it just doesn''t work when script/console is running. It''s not the end of the world of course, but I would appreciate any ideas that you have :-) On May 9, 11:27 am, "T K" <tek.k...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 5/9/08, Stedwick <philip.broc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Is it possible to use foreign characters with UTF-8 encoding in the > > console on MacOS X? I found a few OLD tutorials on the Internet and > > none of them seemed to work. I''m using Leopard by the way. When I try > > to paste in Chinese characters from AltaVista Babel Fish it just > > starts beeping and nothing happens. > > How is your question related to Ruby on Rails? What''s foreign > caracters? English is very foreign to me. Also, please specify your > current settings of Terminal and what exactly you tried to paste.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On May 11, 6:07 pm, Stedwick <philip.broc...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The $KCODE is set to UTF-8 and the MacOS X terminal preferences are > set to UTF-8 and the "escape non-ASCII characters" checkbox is NOT > checked. Again, pasting Chinese into the terminal works fine, it just > doesn''t work when script/console is running. > > It''s not the end of the world of course, but I would appreciate any > ideas that you have :-)Try creating a UTF-8 file and piping it to script/console, instead of manually interacting. This can help you determine if it''s a script/ console internal problem, or your terminal and script/console not playing nicely. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
See this discussion for a possible remedy: < http://www.ruby-forum.com/topic/142493> It''s a Ruby readline library problem... izidor On 9.5.2008, at 2:32, Stedwick wrote:> > Is it possible to use foreign characters with UTF-8 encoding in the > console on MacOS X? I found a few OLD tutorials on the Internet and > none of them seemed to work. I''m using Leopard by the way. When I try > to paste in Chinese characters from AltaVista Babel Fish it just > starts beeping and nothing happens. > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---