Java: JFileChooser getting international filenames?

The issue is not in the file name, but in the fonts which are being used to read the logs. If you are directing the logs to a file, try reading it in a unicode compatible editor, Also make sure that log is using BufferedWriter or similar class (for writing to file/screen).

Ignore the log part - I am trying to save just the filename in the unicode format and display this back to the user. I am storing it in table format DefaultTableModel. BufferedWriter appears to be for files, I will continue looking for the solution to this... – rtfminc Sep 19 at 22:17 DefaultTableModel is used by JTable, which uses fonts available with JRE, which often displays?

Or boxes when rendering unicode strings. Try displaying your file name in a JLabel with a font which is capable of displaying Chinese font to make sure its not the issue of reading files using JFileChooser. – Usman Saleem Sep 19 at 22:51 You are correct.

The filenames with asian characters properly display in labels. I had the table using Calibri (windows font). I added a unicode font to the table ("Dialog") - "analysisTable.

SetFont(uniFont);" and it works like a charm. Thanks for the direction in tracking this down. – rtfminc Sep 22 at 0:38 Glad it helped :-).

– Usman Saleem Sep 22 at 0:39.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions