I was having some problems testing your cases, I think because of the
strange chars, maybe that’s the source of your problems too?
Hope this helps,
Jesus.
The “strange chars” are common chars in Brazilian Portuguese and
Portuguese as well as other languages. e.g.: francês, inglês, pátria,
nação, aeroviário, silábica, and so on.
Ruby wasn’t designed to deal with those chars in the same way you can
deal with english-only chars.
Ruby wasn’t designed to deal with those chars in the same way you can
deal with english-only chars.
Have you tried setting the character set to Unicode? That can make a
difference. Also, before you abandon Ruby altogether, be aware that
Ruby 1.9 deals with characters completely differently than Ruby 1.8,
so those problems you’re having might go away when you upgrade (not
necessarily now, of course, 1.9 being officially ‘experimental’)
On Jan 9, 2008 12:28 PM, Daniel Brumbaugh K. [email protected] wrote:
On Jan 9, 2008 4:39 AM, Ckvok K. wrote:
Ruby wasn’t designed to deal with those chars in the same way you can
deal with english-only chars.
Have you tried setting the character set to Unicode? That can make a
difference. Also, before you abandon Ruby altogether, be aware that
Ruby 1.9 deals with characters completely differently than Ruby 1.8,
so those problems you’re having might go away when you upgrade (not
necessarily now, of course, 1.9 being officially ‘experimental’)
I’ve tried this and still doesn’t work as expected
Although I don’t understand all the nuances that are coming into play
here.
or bring you another trouble. YMMV.
This left me a bit nervous, but as I’m not in need of this (I’m not the
OP)
I’ll leave it for later when I have more time to understand more about
this issue.
In message “Re: gsub mass substitution”
on Wed, 9 Jan 2008 23:03:25 +0900,
“=?ISO-8859-1?Q?Jes=FAs_Gabriel_y_Gal=E1n?=” [email protected]
writes:
|> or bring you another trouble. YMMV.
|
|This left me a bit nervous, but as I’m not in need of this (I’m not the OP)
|I’ll leave it for later when I have more time to understand more about
|this issue.
jcode replaces methods in the String class globally. That may cause
difference.