participate


Internationalization (I18N) - How to Export data to TXT or any file in selected language ?
This question is not answered.

<<   Back to Forum  |   Give us Feedback
10 Duke Stars available
This topic has 1 reply on 1 page.
sindhumourya
Posts:40
Registered: 9/19/08
How to Export data to TXT or any file in selected language ?   
Nov 4, 2009 10:51 PM
 
 
Hi,

I need some urgent help regarding EXPORT problem in I18N.

When i am trying to export data to a file (of any format, say *.txt) , content is not displayed in the
selected language, "??????" symboles are appeared in place of that unicodes (that represents the content in the selected language).

Please help me in finding a solution for this,

Thanks in advance

Mourya
 
DrClap
Posts:38,747
Registered: 4/30/99
Re: How to Export data to TXT or any file in selected language ?   
Nov 5, 2009 9:29 AM (reply 1 of 1)  (In reply to original post )
 
 
When you write to that file, you'll have to use a suitable charset. In your case (you didn't post any code, why not?) I guess you are allowing the system to use its default charset, and that isn't capable of encoding the characters you have there.

So, first you will have to decide what charset to use when you write the data to that file. Don't just choose one at random, choose one which the people reading the file, and their software which they use to read it, will be able to deal with.

Second, use an OutputStreamWriter which specifies that charset and wrap it around a FileOutputStream which directs output to that file.
 
This topic has 1 reply on 1 page.
Back to Forum
 
Read the Developer Forums Code of Conduct

Click to email this message Email this Topic

Edit this Topic
  
 
 
Forums Statistics
    Users Online : 54
  • Guests : 135

About Sun forums
  • Sun Forums is a large collection of user generated discussions. It is here to help you ask questions, find answers, and participate in discussions.

    Check out our guide on Getting started with Sun Forums for a full walkthrough of how to best leverage the benefits of this community.

Powered by Jive Forums