File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Language diaplay problem in the UI for other than English Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Language diaplay problem in the UI for other than English" Watch "Language diaplay problem in the UI for other than English" New topic
Author

Language diaplay problem in the UI for other than English

Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
Hello,

My Database has some data in Thai Language. While displaying it in the UI I see only "?" instead of the Thai letters.

This is happening for only one table in the database. Other tables are working fine. I mean it returns and displays the proper Thai name if stored.

Could anyone help?

Thanks,
Namrita
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
Oops!!! Just to make a small correction.... For other Tables also it isnt working... Thai data from database when tried to display it on the screen shows "?" Question marks....

Sorry... Please help?
Arun Kumarr
Ranch Hand

Joined: May 16, 2005
Posts: 513

When we are creating tables, we should be specifying the format in which the data is stored in the table. like latin1, UTF-8 etc., Check if the problematic table stores data in different format than others.


If you are not laughing at yourself, then you just didn't get the joke.
Namrita Mohanty
Ranch Hand

Joined: Sep 26, 2010
Posts: 35
While it saves data into the Database the correct Thai format is getting saved....

For Eg:

Table: PostalCodes has three columns [Postalcode(numeric english),
District(Thai letters),
City(Thai letters)]

Only when we search for a Postalcode i.e a numeric value it displays the Thai letters of its correcponding District and City in "?". Like if its 3 letters in thai that should come it displays "???" for the District and for City of 7 letters in Thai its 7 Q marks that is getting displayed.

Any ideas?

Cheers!
Namrita
Arun Kumarr
Ranch Hand

Joined: May 16, 2005
Posts: 513

you said other tables are working fine. Considering other table data are getting displayed in other pages, can you go to one of the "correctly displaying page" and retrieve from the same table (say district and city) and try displaying it.

If it displays correctly we can be sure something is wrong in the way the data is handled in UI and clear doubts on the table and wrong data part.
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1477
    
    6

You probably need to encode it while displaying.
http://download.oracle.com/javase/1.3/docs/guide/intl/encoding.doc.html


Swastik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Language diaplay problem in the UI for other than English