Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: separate Chinese and English! with Ruby
Gary Thomas
5/7/2007 7:12:00 PM
I believe the range is (in hex) 3400 to 97A5
Cheers
Gary
> -----Original Message-----
> From: list-bounce@example.com [mailto:list-bounce@example.com]On Behalf
> Of Nanyang Zhan
> Sent: Monday, 7 May 2007 10:17 p.m.
> To: ruby-talk ML
> Subject: Re: separate Chinese and English! with Ruby
>
>
> Akbar Home wrote:
> > On May 7, 4:12 pm, akbarhome <akbarh...@gmail.com> wrote:
> >> > ???·??? Bruce Willis
> >>
> >> ???
> >> Lee xiao ming
> >
> > Sorry. Fixed version:
> > a.each {|x|
> > if x[0].to_i > 128 then
> > puts x.split(' ', 2)
> > else
> > puts x
> > end
> > }
> >
> > This code is quick and dirty.
> Thanks.
> But I was wrong. There are more Characters than Chinese and English that
> compose the strings. Now I see characters like Ô, é, á... if x is one of
> these, x[0]> 128 as Chinese does, but I only want to separate Chinese.
>
> so do you know what exactly range of the value Chinese Characters will
> return? or you can tell me where I can find this kind of information.
>
>
>
> --
> Posted via
http://www.ruby-...
.
>
>
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: separate Chinese and English! with Ruby
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