Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Some Persian characters are not shown correctly in exported CSV file

  Asked By: Maddison    Date: Oct 18    Category: Java    Views: 1523
  

I have a swing application which uses Derby as database and I store both persian
and English values into this database.
Everything looks fine in the swing GUI, all Persian characters are OK and I have
no problem with them.

My problem is that:
- When I export some of my Data as CSV file, all "ی" character are
replaced by ? and almost all of my data is un-useable. Does anyone had such
problem with other databases?

- I am using JasperReport to prepare reports (mostly PDF format) and I have the
same problem. none of "ی" characters are shown. Does anyone else had
similar problem or know how to fix this problem?

-Is my problem related to database?maybe I should use another database to fix
the problem?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Guadalupe Rogers     Answered On: Oct 18

Problem is in your exported CSV file. It's encoding is not correct.
try to encode it using utf8.

 




Tagged: