RE: Chinese not displaying, unless encoding is set explicitly in the browser ?

OK, then it's an outbound-side problem.

The trick I remember for the outbound side is that the ContentType tag ("<%@
page contentType="text/html;charset=UTF-8"%>") must the very first thing
streamed out for that page. If it isn't, WebLogic will use something else
(like property settings or OS Locale setting) to decide how to do the
outbound conversion.

Steve

Steve Billings
Global 360
Software Globalization Consulting
URL: http://www.global360.com/
Email: billings@global360.com
TEL: +1 978-697-8201

-----Original Message-----
From: rao srinivas [mailto:raosrini_11@yahoo.com]
Sent: Saturday, May 04, 2002 12:38 AM
To: Steve Billings
Cc: www-international@w3.org
Subject: RE: Chinese not displaying, unless encoding is set explicitly in
the browser ?

Hi,

Here data(unicode,UTF-8 hexa decimal numbers) is
coming from bundles........not data entered by user
through forms.

waiting for experts reply.............\\\\\\\\\\\\\\\\
thanks in advance
Srinivas


--- Steve Billings <billings@global360.com> wrote:
> Srinivas:
>
> Are you sure the inbound conversion (the conversion
> WebLogic performs to
> convert inbound form data into Unicode for Java
> Strings) is being controlled
> correctly? I'm wondering if the client's data is
> being corrupted as it is
> being entered. (I'm assuming they enter the data
> through forms.)
>
> The method to control this is version dependent, and
> I don't have all the
> information you'll need (if this is, in fact, the
> problem). Before servlet
> version 2.3, you controlled the inbound conversion
> by setting the OS locale
> before starting WebLogic (if the WebLogic version
> isn't too old, there were
> also some WebLogic properties that could control
> it).
>
> Starting with servlet 2.3 (I'm not sure what version
> of WebLogic implements
> servlet2.3) you should be able to use
> setCharacterEncoding() to control it
> in servlets, but I'm not sure how to do it in JSP.
>
> If you think this might be the issue, the simplest
> thing might be to try
> changing the OS locale setting before starting
> WebLogic, and see if that
> makes any difference in the behavior.
>
> Steve
>
> Steve Billings
> Global 360
> Software Globalization Consulting
> URL: http://www.global360.com/
> Email: billings@global360.com
> TEL: +1 978-697-8201
>
> -----Original Message-----
> From: www-international-request@w3.org
> [mailto:www-international-request@w3.org]On Behalf
> Of rao srinivas
> Sent: Friday, May 03, 2002 8:24 AM
> To: Andrew Cunningham
> Cc: www-international@w3.org
> Subject: Re: Chinese not displaying, unless encoding
> is set explicitly in
> the browser ?
>
> Hi,
> The browser encoding is get set to UTF-8 only, in
> both
> ends.
> But in our end, we are able to see Chinese pages
> properly.
> But in the other end, they are not able, unless they
> set encoding to GB2312 explicitly in the brower IE 5
> or 5.5 or 6.0.
>
> And For one page, we compare the 'View Source(HTML)'
> of both ends pages, it is different.....why..?
> In HTML, obviously some unreadable characters are
> there. That unreadable characters are different in
> both pages, one is created in our end, and other is
> created in my client place.
>
> is the problem in browser or server (Weblogic 5.1)?
>
>
> Thanks in Advance
> Srinivas.
>
>
>
> --- Andrew Cunningham <andjc@ozemail.com.au> wrote:
> > Hi Srinivas
> >
> > a couple of things come to mind.
> >
> > It depends on the source they obtained IE from,
> I've
> > noticed that some
> > sources (created with IEAK) do not include the
> > auto-select module or any of
> > the language packs.
> >
> > Its possible that auto-select module is not
> > installed. It it is installed it
> > may be turned off. Go to the 'View' menu then to
> the
> > 'Encoding' sub-menu. If
> > auto-select is active, it will have a tick beside
> > it.
> >
> > Andrew
> >
> > ----- Original Message -----
> > From: "rao srinivas" <raosrini_11@yahoo.com>
> > To: <www-international@w3.org>
> > Sent: Friday, May 03, 2002 1:51 PM
> > Subject: Chinese not displaying, unless encoding
> is
> > set explicitly in the
> > browser ?
> >
> >
> > > Hi,
> > > Our application is working fine at my work
> place,
> > end
> > > user is able to see our application either in
> > > english/chinese/malay based on his laguage
> choice.
> > But
> > > in some client place chinese is not being
> > displayed,
> > > unless they set encoding to GB2312(Simplified
> > Chinese)
> > > explicitly in the browser.
> > > They are not able to see our application in
> > chinese,
> > > unless they set encoding explicitly in the
> brower,
> > in
> > > all their systems(Computers), where in different
> > > vertions of Internet Explore including
> 5.0,5.5,6.0
> > > installed.
> > >
> > > Even they installed some fonts namely, Arial
> > Unicode
> > > MS, and SimSun, this problem is not get
> rectified.
> > > The characterset is UTF-8 in our JSPs.
> > >
> > > The following line is almost first line, in all
> > our
> > > JSPs.
> > > <%@ page contentType="text/html;charset=UTF-8"
> %>
> > >
> > >
> > > Could you please tell me the solution for this
> > problem
> > > ......
> > > Thanks in advance
> > > Srinivas
> > >
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Health - your guide to health and
> wellness
> > > http://health.yahoo.com
> > >
> > >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
>


__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com

Received on Saturday, 4 May 2002 06:40:13 UTC