Re: [Simpleweb-Support] What encoding of String that Request.getParameter() return?
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2005-12-06 17:17:49
|
Hi Carfield,
This has nothing to do with Simple, if this causes
problems then inString is not ISO-8859-1. If you get
this data from the InputStream check the
Request.getMimeType charset. If not then it is related
to something else. Also, you should not try to promote
ISO-8859-1 to UTF-8. You should try:
inString.getBytes("UTF-8");
Niall
--- Carfield Yim <car...@ca...> wrote:
> I see, then I encounter some strangle problem. I was
> using this
> approach to convert multibyte charset to UTF-8 to
> storage:
>
> String newString = new String(
> inString.getBytes("ISO-8859-1") , "UTF-8");
>
> But this don't work at simpleweb...
>
> On 12/6/05, Niall Gallagher
> <gal...@ya...> wrote:
> > Hi,
> >
> > Yes, all URI use the ISO-8859-1 charset (see RFC
> 2396)
> > as does the HTTP request (see RFC 2616).
> >
> > Niall
> >
> > --- Carfield Yim <car...@ca...> wrote:
> >
> > > Is it same as servlet API that using ISO-8859-1?
> > >
> > >
> > >
> >
>
-------------------------------------------------------
> > > This SF.net email is sponsored by: Splunk Inc.
> Do
> > > you grep through log files
> > > for problems? Stop! Download the new AJAX
> search
> > > engine that makes
> > > searching your log files as easy as surfing the
> > > web. DOWNLOAD SPLUNK!
> > >
> http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
> > > _______________________________________________
> > > Simpleweb-Support mailing list
> > > Sim...@li...
> > >
> >
>
https://lists.sourceforge.net/lists/listinfo/simpleweb-support
> > >
> >
> >
> > Niall Gallagher
> >
> >
> >
> > __________________________________________
> > Yahoo! DSL Something to write home about.
> > Just $16.99/mo. or less.
> > dsl.yahoo.com
> >
> >
> >
> >
>
-------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do
> you grep through log files
> > for problems? Stop! Download the new AJAX search
> engine that makes
> > searching your log files as easy as surfing the
> web. DOWNLOAD SPLUNK!
> >
>
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> > _______________________________________________
> > Simpleweb-Support mailing list
> > Sim...@li...
> >
>
https://lists.sourceforge.net/lists/listinfo/simpleweb-support
> >
> N¬HYÞµéX¬²'²Þu¼¦[§Ü¨º
> Þ¦Øk¢è!W¬~é®åzk¶C£
å¡§m
éÞÀ@^ÇÈ^§zØZ¶f¤zËj·!x2¢êå¢âë±æ¬É«,º·âa{å,àHòÔ4¨m¶ÿiÛ(±ÙÜ¢oÚv'ïûjYhr'ׯ:ærX(¦¦W°y´®¦+¶f¢)à+-J)©ìm+©¦í+-²Ê.Ç¢¸ëa¶Úlÿùb²Û,¢êÜyú+éÞ·ùb²Û?+-wèþȦ¦W°y».¦+
Niall Gallagher
__________________________________________
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com
|