473,387 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

JAI, Korean Text and Windows UNICODE

Hello all.

I'm still having some trouble with getting Java work its way through
Korean directories and filenames. I was able to load the strings in
properly (using Cp1252 as the charset), and can print them out to a
JTextArea as they appear in the Konqueror (KDE) browser.
When working in Linux, the images still fail to load properly when I
attempt to do so with JAI. Is there something special I need to do with
JAI in order for it to recognize an alternate charset? I only have
problems when working with strings w/ Korean text in them -- if the
string has no Korean UNICODE, the image loads fine.
Below is the code I am using to load the images:

private Appearance createAppearance(String filename) {
Appearance appear = new Appearance();

RenderedImage img;

BufferedImage buffer = null;
try {
img = (RenderedImage)JAI.create("fileload", filename);
RenderedImageAdapter ria = new RenderedImageAdapter(img);
buffer = ria.getAsBufferedImage();

TextureLoader loader = new TextureLoader(buffer, Texture.RGB);
Texture2D texture = (Texture2D)loader.getTexture();

texture.setEnable(true);
texture.setMagFilter(Texture.NICEST);

appear.setTexture(texture);
} catch (IllegalArgumentException e) {
System.err.println("Failed to load texture: " + filename);
}

return appear;
}

I am currently using JDK 1.4.1 (Blackdown), so I need JAI to do this.
I haven't gotten JDK 1.5.0 to install correctly on Gentoo Linux, so I
can't test that out yet, since the images I am working with are BMPs.

Thanks for any help! It is much appreciated!
Jul 17 '05 #1
0 1663

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Erik Bethke | last post by:
Hello All, I have found much help in the google archives but I am still stuck... here is my code snippet: path = os.getcwd() path = path.decode('UTF8') Now the trouble is I am getting that...
0
by: Harshal | last post by:
Hi all, we are trying to load Korean data from a Excel Sheet in to Oracle Database (8.1.7.3 with NLS_LANG=American_America.UTF8) We successfully transferred the Unicode file to our Unix...
1
by: rhompi | last post by:
Hi, I have a problem displaying korean characters in javascript alerts. Korean characters are displayed fine in menus, webpages, buttons,etc. except in javascript alerts. Can anyone please help...
4
by: Leora Wenger | last post by:
We moved some pages of Japanese, Korean and Chinese from one server to another. In doing so, the users with Windows XP could still see the Asian fonts. However, a user with Windows 2000 could no...
10
by: Nikolay Petrov | last post by:
How can I convert DOS cyrillic text to Unicode
0
by: Darin | last post by:
I have the following routines: Public Function DecryptText(ByVal in_text As String) As String Dim strKey As String = "ROCK" Dim i As Integer Dim c As Integer Dim out_buff As String For i =...
0
by: joseph speigle | last post by:
hi, To see the query results in native language see http://database.sarang.net/?inc=read&aid=5368&criteria=pgsql&subcrit=qna&id=&limit=20&keyword=&page=1 the simpler url is ...
10
by: joelagnel | last post by:
hi friends, i've been having this confusion for about a year, i want to know the exact difference between text and binary files. using the fwrite function in c, i wrote 2 bytes of integers in...
29
by: list | last post by:
Hi folks, I am new to Googlegroups. I asked my questions at other forums, since now. I have an important question: I have to check files if they are binary(.bmp, .avi, .jpg) or text(.txt,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.