From: Steve Callaway Date: 2006-07-07T16:04:31+09:00 Subject: Re: Danish Characters in Ruby Uri I have a workaround now (which will be doing for the moment) which involves a Unicode gsub of the string for DK characters e.g str.gsub!(/�/, 'Å') #� str.gsub!(/�/, 'Å') #� etc... Fortunately uri seems to be happy with this. --- Steve Callaway wrote: > Hi Hal, > > Thanks for your swift reply, don't feel $KCODE is > the > issue but will play with it on the offchance, been > down the escape road though with no success. My > reading of the situation is the regexp parser in > common.rb can't see the chars and throws the URL out > on a (misguided) safety first basis. > > rgds > > Steve > > --- Hal Fulton wrote: > > > Steve Callaway wrote: > > > > > > There would appear to be a deficiency in the > > common.rb > > > URI module of uri when processing non-standard > > > characters > > > > [snip] > > > > Hmm... what is your $KCODE set to, and are you > > using the jcode lib? > > > > I'm not certain uri honors those, but I would > > certainly assume so... > > > > Or maybe it's an issue where certain chars need > > to be escaped... > > > > Sorry, I'm not being very helpful, am I? > > > > > > Hal > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam > protection around > http://mail.yahoo.com > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com