Thanks Mark.
Besides that, I used wrong property. Right statement should be:
&useUnicode=true&characterEncoding=charset
Now server.xml is ok but I'm still getting strange characters when retrieving
text from database.
I changed characterEncoding property to several different values, but result
is same all the time.
It looks like driver (I use Connector/J 3.1.8) doesn't see the change.
Any ideas?
tvrdi
Mark Matthews <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
tvrtko stosic wrote:
> I use connection pooling with Tomcat 5.5.4. Corresponding entry in server.xml
> looks like this:
>
>
>
>
>
> Everything works fine, just I don't know how to specify which character set
> is to be used for retriving data
> When connecting to database from application without connection poll,
> character set can be specified in database url somehow like this:
>
> url =
> jdbc:mysql://localhost:3306/instrukcije?username=user&password=java&useCharset=cp1250....
>
> How to do the similar thing in this case?
>
> Thanks in advance.
> tvrdi
Tvrdi,
Use a similar URL in your resource element, but replace the "&"s with
"&" since the ampersand denotes an entity in XML.
-Mark
- --
Mark Matthews
MySQL AB, Software Development Manager - Connectivity
www.mysql.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
iD8DBQFDlzRVtvXNTca6JD8RAqAAAJkBKmqLz5XqtYtYe5U9wKzi7oRs7wCggZf5
MTDb3PmeX1/Tk5QHurYGqD4=
=J6cc
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Yahoo! Shopping
Find Great Deals on Gifts at Yahoo! Shopping