|
Re: [jruby-user] Iterating over characters in a String ?: msg#00145lang.jruby.user
Leonel Gayard wrote: Ok, I'll take a look at that. If you know what character set you are using, you can use the unpack method. For example, if the bytes represent UTF-8 characters, then str.unpack('U*') will return an array of unsigned integers. If you are using ISO-8859-1, then try str.unpack('C*') which returns an array of Fixnums. // Gregory --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [jruby-user] Iterating over characters in a String ?: 00145, Leonel Gayard |
|---|---|
| Next by Date: | Re: [jruby-user] jruby inside jython: 00145, Yoko Harada |
| Previous by Thread: | Re: [jruby-user] Iterating over characters in a String ?i: 00145, Leonel Gayard |
| Next by Thread: | [jruby-user] jopenssl and ssh issue (was: ssh and sftp from JRuby?): 00145, Bill Dortch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |