Well, we need to send all generated pages in UTF-8, and there were some
complications...
https://bugs.freenetproject.org/view.php?id=363
https://bugs.freenetproject.org/view.php?id=364

On Mon, May 22, 2006 at 03:56:27PM +0200, Florent Daigni?re (NextGen$) wrote:
> * Matthew Toseland <toad at amphibian.dyndns.org> [2006-05-22 14:51:46]:
> 
> > Ummm... do you know for a fact that the page being sent is in UTF-8?
> > There is a bug filed for this.
> > 
> 
> I know, well, if it's not already, it ought to be ;)
> 
> > On Sun, May 21, 2006 at 01:43:00PM +0000, nextgens at freenetproject.org 
> > wrote:
> > > Author: nextgens
> > > Date: 2006-05-21 13:42:57 +0000 (Sun, 21 May 2006)
> > > New Revision: 8818
> > > 
> > > Modified:
> > >    
> > > trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java
> > > Log:
> > > 13:33 < Zothar> nextgens: side note while I have you here, perhaps you 
> > > know something about 
> > >                 this?: clients/http/filter/GenericReadFilterCallback.java 
> > > uses or overrides a 
> > >                 deprecated API.
> > > 
> > > Modified: 
> > > trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java
> > > ===================================================================
> > > --- 
> > > trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java
> > >   2006-05-21 13:29:03 UTC (rev 8817)
> > > +++ 
> > > trunk/freenet/src/freenet/clients/http/filter/GenericReadFilterCallback.java
> > >   2006-05-21 13:42:57 UTC (rev 8818)
> > > @@ -1,6 +1,7 @@
> > >  package freenet.clients.http.filter;
> > >  
> > >  import java.net.MalformedURLException;
> > > +import java.io.UnsupportedEncodingException;
> > >  import java.net.URI;
> > >  import java.net.URISyntaxException;
> > >  import java.net.URLEncoder;
> > > @@ -127,9 +128,13 @@
> > >                   String p = path;
> > >                   if(typeOverride != null)
> > >                           p += "?type="+typeOverride;
> > > -                 if(u.getFragment() != null)
> > > +                 if(u.getFragment() != null){
> > > +                         try{
> > >                           // FIXME encode it properly
> > > -                         p += URLEncoder.encode(u.getFragment());
> > > +                                 p += 
> > > URLEncoder.encode(u.getFragment(),"UTF-8");
> > > +                         }catch (UnsupportedEncodingException e1){
> > > +                         }
> > > +                 }
> > >                   return null;
> > >           }
> > >   }
> > > 
> > > _______________________________________________
> > > cvs mailing list
> > > cvs at freenetproject.org
> > > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> > > 
> > 
> > -- 
> > Matthew J Toseland - toad at amphibian.dyndns.org
> > Freenet Project Official Codemonkey - http://freenetproject.org/
> > ICTHUS - Nothing is impossible. Our Boss says so.
> 
> 
> 
> > _______________________________________________
> > Devl mailing list
> > Devl at freenetproject.org
> > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl



> _______________________________________________
> Devl mailing list
> Devl at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

-- 
Matthew J Toseland - toad at amphibian.dyndns.org
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20060522/72de875b/attachment.pgp>

Reply via email to