On 2/13/2015 4:04 AM, BalNagendra wrote:
Hi,
I am writing an Indic Application which uses Sanskrit, Hindi and Telugu as
languages. It is supported by UTF-8. When I am trying to insert these rows
in Derby everything gets '?' out. After tooling around with some, I realized
maybe it is Windows cmd.com problem. So I upgraded to Console2 which is
showing these characters well. But still whatever I am inserting is coming
back as '?'.
<http://apache-database.10148.n7.nabble.com/file/n143790/Indic.jpg>
Is there something wrong I am trying:
1. I learnt somewhere that Derby supports only these following languages,
Indic is not one of them. Elsewhere it is written it can support any
language which Java UNICODE has support for. I tested my Java program and it
is displaying Indic well. So what is wrong.
<http://apache-database.10148.n7.nabble.com/file/n143790/DerbySupportedLanguages.jpg>
I am using Derby 10.11 on Windows XP and java 1.7.
Thanks in advance.
--
View this message in context:
http://apache-database.10148.n7.nabble.com/Derby-with-Indic-UTF8-languages-tp143790.html
Sent from the Apache Derby Users mailing list archive at Nabble.com.
This is likely a tools issue, rather than a database issue. As noted the Derby
database can store any
string that is unicode. What you may be seeing is an issue with "ij"
displaying the result. Given that
in your example ij is printing english prompts it is likely interpreting the
returned string as english and
since it is not can't print it.
See the following about using derby tools and language and codeset issues:
http://db.apache.org/derby/docs/10.11/tools/derbytools.pdf
Derby does have a limited number of languages that various messages can be
printed in, so it is unlikely
that will work for you.
I don't have much experience with non-english environments, but can verify that
derby should have
have no problems storing and retrieving any unicode based string.
Maybe try writing a simple java/jdbc program rather than use ij and see if that
gives you results as you expect.