yeah, that is a very valuable point for chinese user.
Hi, yanping, I have dealed with chinese words with jruby these days. I am a
newbie for ruby and jruby, so I have encounterd some problems. Can you give
me some suggestion?
I have a class Hi like this:
package a.b;
public class Hi {
public String info() { return "你好"; }
}
and use it in jruby like this:
require 'java'
include_class 'a.b.Hi'
hi = Hi.new
puts hi.info
The result is bad word like "���浠�". This occured in jruby and jirb even used
-Ku
Thanks a lot :)
Best Regards.
Robert
2007/5/29, jia yanping <[EMAIL PROTECTED]>:
Yes,I want it!
2007/5/29, Charles Oliver Nutter <[EMAIL PROTECTED]>:
>
> jia yanping wrote:
> > Sorry for my later reply.My email server has some problem:(
> >
> >
> >
> > Thanks for your replay:)
> >
> > We all knows Ruby is good lang for DSL, so I want using Chinese as
> > identifier in ruby. Like below:
>
> The simple answer why we don't support this is because C Ruby doesn't
> support it.
> We have had experimental patches in the past that allowed unicode
> identifiers, but
> we generally have not included those since they would allow you to write
> code
> in JRuby that would not run in the standard C implementation of Ruby.
>
> But perhaps we should revisit this? Or provide a flag to turn it on so
> people have
> to explicitly say they want to do it?
>
> - Charlie
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
> http://xircles.codehaus.org/manage_email
>
>