I mean, convert it in your java application to an entity, that way when it
hits your javascript its a plain ASCII character representation of the
special character.  When the rendering engine picks it up, it'll display as
the special character.

cheers

Michael Lawson
Content Tools Developer, Global Solutions, ibm.com
Phone:  1-828-355-5544
E-mail:  mjlaw...@us.ibm.com

'Examine my teachings critically, as a gold assayer would test gold. If you
find they make sense, conform to your experience, and don't harm yourself
or others, only then should you accept them.'


                                                                       
  From:       rmeder <rme...@gmail.com>                                
                                                                       
  To:         "jQuery (English)" <jquery-en@googlegroups.com>          
                                                                       
  Date:       04/24/2009 09:44 AM                                      
                                                                       
  Subject:    [jQuery] Re: AJAX Response causing character display problems 
with chars like
                                                                       






when displaying as html content it works fine soon as you pass this
text through js the problem occurs by converting the é character as
a ?.


Any thoughts



On Apr 24, 2:59 pm, Michael Lawson <mjlaw...@us.ibm.com> wrote:
> You could always try converting it to an html entity in your application,
> then you don't have to worry about character sets.
>
> cheers
>
> Michael Lawson
> Content Tools Developer, Global Solutions, ibm.com
> Phone:  1-828-355-5544
> E-mail:  mjlaw...@us.ibm.com
>
> 'Examine my teachings critically, as a gold assayer would test gold. If
you
> find they make sense, conform to your experience, and don't harm yourself
> or others, only then should you accept them.'
>
>   From:       rmeder <rme...@gmail.com>

>
>   To:         "jQuery (English)" <jquery-en@googlegroups.com>

>
>   Date:       04/24/2009 08:56 AM

>
>   Subject:    [jQuery] AJAX Response causing character display problems
with chars like
>
> Hi Guys,
>
> When passing a é character as part of an an ajax responset and
> printing the text to the screen from js, the value display as a ?. I
> tried converting the piece of text to utf8 and then it displays
> correctly on a windows server however on Linux server the vallues
> still displays as a ?.
>
> I am using Java as my backend code and encode the text as UTF8 by
> using the getBytes method. Can anybody assist me with the problem or
> have any suggestions how to go about fixxing it.
>
> Regards,
>
> Ryan
>
>  graycol.gif
> < 1KViewDownload
>
>  ecblank.gif
> < 1KViewDownload

<<inline: graycol.gif>>

<<inline: ecblank.gif>>

Reply via email to