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]>