Which Jetspeed version are you using ?
Also can you check the actual encoding returned by Jetspeed ?
Using NS or Mozilla you can get it in the "Page info" menu item.

> -----Message d'origine-----
> De : Vlachogiannis Evangelos [mailto:[EMAIL PROTECTED]]
> Envoy� : lundi 9 d�cembre 2002 18:53
> � : '[EMAIL PROTECTED]'
> Objet : Greek from MySql Prob
> 
> 
> Hi all,
> 
> I have developped two portlets. One writing to MySql database and one
> reading from that. My problem is when I use Greek 
> (ISO8859_7). The data
> stored to database seems ok, greek. When I am trying to 
> retrieve it and
> display it to jetspeed screen I am getting those ?????. What 
> I have done, is
> trying to convert ISO8859_7 to utf-8 but does not seem to work.
> Here is my code:
> 
>     String string =null ;
>                try {
>                    // Convert from Unicode to UTF-8
>                    string = out.toString();
>                    byte[] utf8 = string.getBytes(ISO8859_7);
> 
>                    // Convert from UTF-8 to Unicode
>                    string = new String(utf8, "UTF-8");
>                } catch (UnsupportedEncodingException e) {
>       }
> 
>      viewbutton = null;
>       return (new StringElement(string));
> 
> 
> Any help pls??
> Thnx
> Vangelis
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to